Whether you are looking for a routine to tell you how many colors are on a user's main monitor, or the complete source code for a killer game that uses GWorlds or sprite animation, you'll find it here. There's hundreds of thousands of lines of source code, in C, C++, Pascal, and other languages. You'll find complete applications, code resources, Control Panels, Extensions, Libraries, and Snippets. Most code examples are built using CodeWarrior, Symantec, or MPW environments.
__________
Apprentice:Source Code:
Metrowerks,MPW,Symantec
68K,PPC
----------
Refractor 1.0
Refractor is a very cool After Dark screen saver. It does live morphing/warping of your desktop, runs native on Power Macs, and has separate code for 68000, 68020+, 68k w/coprocessor, and PowerPC. Full projects, source code, and documentation are included to show how,this whole mess goes together.
__________
Apprentice:Source Code:Add-Ons:After Dark:
Steve Bushell
python@tiac.net
Metrowerks
68K,PPC
----------
ScreenFlip 1.5
ScreenFlip is an After Dark screen saver module which performs animated horizontal and vertical flips of your screen's contents. It is compatible with After Dark (both 2.0 and 3.0), DarkSide of the Mac, and UnderWare. Features: Flicker-free animation; does not use any permanent System memory under After Dark 2.0; has an animated About Box and thumbnail; runs under both MultiModule and the Randomizer — without crashing; comes with extensively documented source code in 68K and PPC CodeWarrior projects.
__________
Apprentice:Source Code:Add-Ons:After Dark:
Leo Breebaart
leo@cp.tn.tudelft.nl
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
The Swarm 1.5
The Swarm is an After Dark module which demonstrates very simple, but surprisingly elegant and mesmerizing line animation, in which a number of small line segments (the 'bees') chase one other segment (the 'queen bee') across the screen. Features fast, flicker-free animation. Includes documented source code in 68K and PPC CodeWarrior projects.
__________
Apprentice:Source Code:Add-Ons:After Dark:
Leo Breebaart
leo@cp.tn.tudelft.nl
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Switch Keyboard
Switch Keyboard is an OSAX (AppleScript Scripting Addition) that switches to the next keyboard in the current Script System. This is equivalent to pressing Command-Option-Space on the keyboard, or choosing the next entry in the list of keyboard layouts from the Keyboard control panel.
__________
Apprentice:Source Code:Add-Ons:AppleScript:
John Blackburne
johnb@HK.Super.NET
Metrowerks
68K
----------
Column Maker 1.0.1
Column Maker is a BBEdit extension which inserts a space or tab character into every line of the document at the insertion point, seperating it into columns. This is extremely useful if you have a file full of data that is running together and need to separate it before importation to, say, a graphing utility.
__________
Apprentice:Source Code:Add-Ons:BBEdit:
Doug Wade
dwade@netcom.com
Metrowerks
68K
----------
MacBob 1.0ß2
MacBob 1.0ß1 is the Macintosh version of a small object-oriented, dynamic language (OODL) implemented as a BBEdit extension. The syntax is similar to C++, but it has garbage collection, runtime name binding and,type checking like Smalltalk. MacBob consists of a byte code compiler and interpreter written in C++ (Symantec C++ 7.0 project & source code supplied). Program editing, input & output is through BBEdit (Lite) windows. The simple interface dialogue has full balloon help and command key equivalents for every button. £5 shareware.
__________
Apprentice:Source Code:Add-Ons:BBEdit:
Chris Hyde
drjekyll@hylight.demon.co.uk
/info-mac/dev/
68K
----------
DuoDepth 1.0b1
DuoDepth is a control strip module that allows you to switch your Duo 280c from 640 x 480, 256 Colours or Greys, to 640 x 400, Thousands of Colours. Includes Pascal source code.
__________
Apprentice:Source Code:Add-Ons:Control Strip:
Quinn "The Eskimo"
quinn@quinn.echidna.id.au
ftp://ftp.share.com/peterlewis/
68K
----------
ExcelTalk
ExcelTalk is an Excel Add-In that adds the basic capabilities of Apple’s Speech Manager to MicroSoft Excel 4. To use it either: 1) Open it like any other Excel document, i.e. using ‘Open’ in the file menu or by double clicking on it in the Finder, or: 2) Place it in the “Excel Startup Folder (4)” folder inside the Preferences folder in your System Folder to have it opened each time you run Excel.
__________
Apprentice:Source Code:Add-Ons:Excel:
John Blackburne
johnb@HK.Super.NET
68K
----------
Grabbug 1.0b2
Grabbug is a MacsBug dcmd for grabbing screen dumps. Grabbug is hard to use, consumes lots of memory and doesn’t have many advanced features. Its sole redeeming feature is that it can grab the screen at any time, even interrupt time.
__________
Apprentice:Source Code:Add-Ons:MacsBug:
Quinn "The Eskimo"
quinn@quinn.echidna.id.au
ftp://ftp.share.com/peterlewis/
68K
----------
MPW cawf 4.0.9
MPW cawf is a C version of awf, Henry Spencer's Amazingly Workable (text) Formatter. (Awf is written in awk and appears in comp.sources.unix, Volume 23, Issue 27.) Cawf and awf provide a usable subset of raw nroff capabilities and the styles of the man(7), me(7) (only cawf supports me(7)), and ms(7) macro sets. One of cawf's virtues is that it will run on PC clones under MS-DOS or OS/2. It will also run on the Apple Macintosh as a Macintosh Programmer's Workshop (MPW) tool. Like awf, cawf is completely independent of any licensed Unix source code. In comparison to awf, cawf supports more nroff functions and one more macro set, me(7). Includes complete source code.
__________
Apprentice:Source Code:Add-Ons:MPW:
Matthias Neeracher
neeri@iis.ee.ethz.ch
http://err.ethz.ch/members/neeri.html
MPW
68K
----------
MPW dmake 4.0
MPW dmake is a Make like tool that has been used by individuals at the University of Waterloo. This release replaces all previous releases; which are no longer supported. The most current source code for dmake is available for anonymous ftp from plg.uwaterloo.ca. It is in the pub/dmake directory, set your mode to binary, and copy the distribution format that suits your target environment the best.
__________
Apprentice:Source Code:Add-Ons:MPW:
Matthias Neeracher
neeri@iis.ee.ethz.ch
http://err.ethz.ch/members/neeri.html
MPW
68K
----------
MPW noweb 2.7
MPW noweb is a simple, extensible literate-programming tool. noweb is available via anonymous ftp from the Comprehensive TeX Archive Network, in directory web/noweb. CTAN includes hosts ftp.shsu.edu, ftp.tex.ac.uk, and ftp.uni-stuttgart.de. Note that if you simply get 'noweb.tgz', you'll be getting a bunch of binary distributions that you probably don't want. Most users will want either one of the binary distributions or else the source (src). Fanatics can check out the contrib and examples directories.
__________
Apprentice:Source Code:Add-Ons:MPW:
Matthias Neeracher
neeri@iis.ee.ethz.ch
http://err.ethz.ch/members/neeri.html
MPW
68K
----------
MPW re2c 1.1
MPW re2c is a tool for generating C-based recognizers from regular expressions. re2c-based scanners are efficient: for programming languages, given similar specifications, an re2c-based scanner is typically almost twice as fast as a flex-based scanner with little or no increase in size (possibly a decrease on cisc architectures). Indeed, re2c-based scanners are quite competitive with hand-crafted ones. Unlike flex, re2c does not generate complete scanners: the user must supply some interface code. While this code is not bulky (about 50-100 ines for a flex-like scanner; see the man page and examples in the distribution) careful coding is required for efficiency (and correctness).
__________
Apprentice:Source Code:Add-Ons:MPW:
Matthias Neeracher
neeri@iis.ee.ethz.ch
http://err.ethz.ch/members/neeri.html
MPW
68K
----------
MPW rman 1.3.4
MPW rman is a filter for UNIX manual pages. It takes as input man pages formatted for a variety of UNIX flavors (not [tn]roff source) and produces as output a variety of file formats. Currently, it accepts man pages as formatted by the following flavors of UNIX: Hewlett-Packard HP-UX, AT&T System V, SunOS, Sun Solaris, OSF/1, DEC Ultrix, SGI IRIX, Linux, SCO; and produces output for the following formats: printable ASCII only (stripping page headers and footers), section and subsection headers only, TkMan, [tn]roff, Ensemble, SGML (soon--I finally found a DTD), HTML, LaTeX, RTF, Perl 5's pod.
__________
Apprentice:Source Code:Add-Ons:MPW:
Matthias Neeracher
neeri@iis.ee.ethz.ch
http://err.ethz.ch/members/neeri.html
MPW
68K
----------
BitDepth XFCN 1.0.1
BitDepth XFCN returns the bit depth of the main screen. For example, if you are in 256 color mode, it will return 8. If you are in black and white mode, it will return 1.
__________
Apprentice:Source Code:Add-Ons:XCMDs:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
CharCount XFCN 1.0.1
CharCount XFCN returns the number of times a specified character appears in the source text. It requires two parameters: the search character, and the string to search.
__________
Apprentice:Source Code:Add-Ons:XCMDs:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
CRCValue XFCN 1.0.1
CRCValue XFCN returns a 16 bit CRC of a specific piece of text.
__________
Apprentice:Source Code:Add-Ons:XCMDs:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
OptKeyDown XFCN 1.0.1
OptKeyDown XFCN returns true if the option key is down. Obviously, it does not require any parameters, and will warn you if you try to pass them.
__________
Apprentice:Source Code:Add-Ons:XCMDs:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
ROT13 XFCN 1.0.1
ROT13 XFCN rotates letters from a-z and A-Z by 13 and returns the result. This is useful for some Usenet news articles that have been rudimentarily encrypted with this technique. Requires one parameter: the text to be rotated.
__________
Apprentice:Source Code:Add-Ons:XCMDs:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
ScreenHeight XFCN 1.0.1
ScreenHeight XFCN returns the height of the main screen in pixels. It does not require any parameters, and will warn you if you try to pass them.
__________
Apprentice:Source Code:Add-Ons:XCMDs:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
ScreenWidthXFCN 1.0.1
ScreenWidth XFCN returns the width of the main screen in pixels. It does not require any parameters, and will warn you if you try to pass them.
__________
Apprentice:Source Code:Add-Ons:XCMDs:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
XCMDTools++
XCMDTools++ is a simple wrapper class for the basic XCMD operations. Only one instance of the xcmdBase class is generated per XCMD call but there may be many instances of the XCMDString class.
__________
Apprentice:Source Code:Add-Ons:XCMDs:
Paul Beeken
knowsoft@ios.com
Metrowerks
68K,PPC
----------
Learn C++ (CodeWarrior)
Learn C++ is the source code which accompanies the book, Learn C++ on the Macintosh by Dave Mark.
__________
Apprentice:Source Code:By the Book:
Dave Mark
DMark@aol.com
http://www.spiderworks.com/dmark/
Symantec
68K
----------
Mac C Primer V1
Mac C Primer V1 is the source code which accompanies the book, Macintosh Programming Primer, Volume 1 by Dave Mark.
__________
Apprentice:Source Code:By the Book:
Dave Mark
DMark@aol.com
http://www.spiderworks.com/dmark/
Metrowerks,Symantec
68K,PPC
----------
68k Make thng
68k Make thng is C code to turn a resource file into a 'thng', or a system extension containing a component. This is not really needed for older versions of Sym/Think C/C++; however, for version 8.x, code resources are built and added to the projects resource file. The project resource file must then have it's type and creator changed into whatever it should be, i.e. an INIT or a 'thng'. This tiny little drop application will do that automagically.
__________
Apprentice:Source Code:C:Applications:
Dave Nebinger
dnebing@epix.net
Symantec
68K
----------
AppKiller 1.2.1
AppKiller is an application which allows the user to kill any running application that supports the standard Apple Events. One use would be to run a single program, such as a game, on the "bare" machine. Users of machines with 2Mb of RAM might need to use this occasionally (maybe for a compiler?) to free up some extra memory. Also included is the ability to start applications. This is a nice addition because it's hard to start applications once the Finder is dead. 68K and PPC CodeWarrior 7 projects included.
__________
Apprentice:Source Code:C:Applications:
Brent Burton
brentb@math.tamu.edu
Metrowerks
68K,PPC
----------
Argus TE 2.0
Argus TE is a text editor. It was developed solely as an exercise to learn how to use the Toolbox routines in the Text Edit Manager. Although you can feel free to use this application and function libraries as you wish, there is no expressed or implied warranty as to the performance of the software.
__________
Apprentice:Source Code:C++:Applications:
Argus Software
73741.2415@compuserve.com
Symantec
68K
----------
BYacc-CW 1.9
BYacc-CW is a yet another port of Berkeley Yacc 1.9 to the Macintosh. To use it, just drag-and-drop your .y file onto the Yacc icon. If you forget this and just open the application, it will use StandardGetFile to prompt for a text file. Once a file is provided, the GUI is pretty self explanatory to anyone who has used Yacc on unix. About the only thing that isn't obvious is that if you hold down option when you click the "Yacc" button, it will save the current settings in the document that you dropped on the application; this allows you to set up your custom settings once for each document then just drag/drop/hit return for all further Yacc sessions.
__________
Apprentice:Source Code:C:Applications:
Jeff Laing
jeffl@melb.arcsystems.com.au
/info-mac/dev/
Metrowerks
68K,PPC
----------
Cheat II
Cheat II is an application which helps you cheat in a number of games. If you've ever wanted to have extra lives, bump up your score, or see what a different level looks like, Cheat II will get you there.
__________
Apprentice:Source Code:C:Applications:
Adam Miller
miller@minerva.cis.yale.edu
exclusive
Symantec
68K
----------
CheckBook 2.1d1
CheckBook demonstrates a classic MacApp document based application that demonstrates some common but useful techniques: Displays a list of data in a grid view; allows editing of the items by double clicking the items; column sizes can be resized by dragging the edges; document stores window size, location, column widths, and data; basic appleScript support; about box loads styled text into a TTEView; imports from a text file and shows a Finder style thermometer; and, a Windows menu (based on source off an old Apprentice CD). The program has been built with MacApp 3.3 GM and Metrowerks CW7.
__________
Apprentice:Source Code:C++:Applications:
Peter Marks
PETER_MARKS@qmgate.corp.apple.com
Metrowerks
68K
----------
Creator Changer 2.5
Creator Changer is a utility which allows you to change the creator of files. Projects for THINK C 7 (68k) and Symantec C 8 (PPC) included.
__________
Apprentice:Source Code:C:Applications:
Christopher Waskowich
clw95002@uconnvm.uconn.edu
AOL:MacDev:
Symantec
68K,PPC
----------
Drop•MPSR 1.2
Drop•MPSR modifies the MPSR resource in text files. These resources are used for remembering things about the source files for when they are opened later. Font, font size, and window positions are just some of the things saved in the MPSR resource. Includes THINK C (68K and PPC) projects.
__________
Apprentice:Source Code:C:Applications:
Dave Nebinger
dnebing@epix.net
Symantec
68K,PPC
----------
Flex-CW 2.5.1
Flex-CW is a fast lexical analyser generator for C and C++. To use it, drag-and-drop your flex parser description file (usually a file with a .l extension) onto the Flex icon. If you forget this and just open the application, it will use StandardGetFile to prompt for a text file. Once a file is provided, the GUI is pretty self explanatory to anyone who has used Flex on unix.
__________
Apprentice:Source Code:C:Applications:
Jeff Laing
jeffl@melb.arcsystems.com.au
/info-mac/dev/
Metrowerks
68K,PPC
----------
GetKeys 0.1
GetKeys is a small hack which tells you what key has just been pressed on your keyboard. It displays the hexadecimal representation of the key in a small window.
__________
Apprentice:Source Code:C:Applications:
J.A. Gutierrez
spd@ivo.cps.unizar.es
Symantec,Metrowerks
68K,PPC
----------
GW AdaEd 1.4.2
GW AdaEd is an interactive development environment for the Ada programming language. It is based on the AdaEd compiler/interpreter developed at NYU. The language (and the environment) was designed for education purposes, but it is stable enough that it can be used for small and medium size projects, or for learning the Ada language on your own. Includes CodeWarrior (68K and PPC) projects and complete source code.
Indent is a C/C++ program formatter. It reformats the C/C++ program,in the input-file according to a long list of command line switches. The original indent (part of the Berkeley Software Distribution) was,only for C programs. It has since been modified to understand C++,syntax as well.
__________
Apprentice:Source Code:C++:Applications:
Patrick Fournier
fourniep@IRO.UMontreal.CA
/info-mac/dev/src/
Metrowerks
68K
----------
InterLaunch 1.1.1
InterLaunch is a small but useful launching utility for Internet applications. It acts as an interface to your favorite applications, as well as MacPPP.
__________
Apprentice:Source Code:C:Applications:
Paul Celestin
celestin@celestin.com
Metrowerks
68K,PPC
----------
Kid's Clicks! 1.0.2
Kid's Clicks began as a program for my daughter; Allie; her picture is on the About screen (see the Apple menu). She enjoyed playing with the program, and so did we. With a few adjustments from the original version, "Kid's Clicks!" was born. Kid's Clicks is for fun, for education, for memories, or for anything anyone desires it to be. The idea is simple: You have a picture which you click on to hear sounds play; sounds which are associated with the places on the picture where you click. Part of the fun is finding all the places where sounds are and all the sounds you can hear. Kid's Clicks uses modules. If this program was hard-coded to run only a single module, built into the program, it would get old pretty fast; and it wouldn't be nearly as useful as it is by using outside modules.
__________
Apprentice:Source Code:C:Applications:
Eric Long
EricMLong@aol.com
AOL:MacDev:
Symantec
68K
----------
LoadADrive 1.2
LoadADrive is a simple utility to mount a CD-ROM that wasn't switch on at startup without restarting your Macintosh. A bit more detailed: The Apple CD-ROM driver (I don't know if other CD-ROMs work the same way cause I only have an Apple CD-ROM at hand) scans the SCSI bus for a CD-ROM drive at startup. If it does not find one (because the drive is switched off) the CD-ROM driver will not be loaded. The driver is necessary to access the CD-ROM, you cannot use an utility that can mount hard disks to mount a CD-ROM. So you have to restart your Macintosh.
__________
Apprentice:Source Code:C:Applications:
Dieter Spaar
spaar@mirider.augusta.de
MPW
68K
----------
Lookup 1.0d2
Lookup, as the name implies, is a name and phone number lookup application. You can store two phone numbers and an email address with each name listed in the file. The file format is tab-delimited text which means (hopefully) easy data conversion from other systems. Written with Metrowerks PowerPlant. It is a document-based application. PowerPlant contains an object dependency mechanism built in to the core of the framework. The author has employed this successfully to tie the document object (containing the user's data) to the view objects (ie the windows, lists, etc) without any tight coupling. Also supports Apple event Object Model. Covered under the GNU General Public License.
__________
Apprentice:Source Code:C++:Applications:
Alastair Rankine
alastair@magna.com.au
/info-mac/dev/src/
Metrowerks
68K
----------
MacDP 1.1.2
MacDP will display Macintosh PICT files and standard JFIF/JPEG documents using QuickTime. You will need QuickTime if you want to display JPEG and QuickTime compressed PICT files. (MacDP was developed under QuickTime 2.0, but it could probably work with any previous version of QuickTime.) Includes CodeWarrior 7 C project.
__________
Apprentice:Source Code:C:Applications:
J.A. Gutierrez
spd@ivo.cps.unizar.es
Metrowerks
68K
----------
MacGzip 1.0
MacGzip is a utility that will compress and decompress .gz files, the new compression standard that the GNU folks use. It will also decompress .Z files as well. Includes Symantec and Metrowerks source code for 68K and PPC versions. Distributed under the GNU General Public License
__________
Apprentice:Source Code:C:Applications:
J.A. Gutierrez
spd@ivo.cps.unizar.es
/info-mac/dev/src/
Metrowerks,Symantec
68K,PPC
----------
MacPerl 5.0.3
MacPerl is a Macintosh port of Perl, a language that combines some of the features of C, sed, awk and shell. Both a standalone application and MPW tool are included. The standalone application requires System 7, but "MacPerl Runtime" provides a decent subset of the functionality under System 6. Some of the really cool features require ToolServer, System 7, and enough RAM. Includes complete C source code for building the application and tool under MPW.
__________
Apprentice:Source Code:C:Applications:
Matthias Neeracher
neeri@iis.ee.ethz.ch
http://err.ethz.ch/members/neeri.html
Metrowerks
68K,PPC
----------
MacWT 0.9
MacWT is an easy-to-use 3-D graphics engine, based on the cross-platform wt engine originally developed by Chris Laurel. MacWT was built from a base of wt 0.05c1 with the exception of those changes from b to c1 which broke the floor/ceiling rendering code. The first version of MacWT was created by Turlough O'Connor in early 1994. While the current MacWT is based on Mr. O'Connor's MacWT 0.04, little of the original code remains.
__________
Apprentice:Source Code:C:Applications:
William Hayden
afn28988@freenet.ufl.edu
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Minimalist Clock 1.0.2
Minimalist Clock is a very small application which displays a clock on your screen. You can move the clock wherever you like. You can also view the current date by clicking the clock once. Includes CW7 projects for 68K and PPC. Also includes 68K THINK C 7 project.
__________
Apprentice:Source Code:C:Applications:
Paul Celestin
celestin@celestin.com
Symantec,Metrowerks
68K,PPC
----------
MSG Demo 1.4.1
MSG Demo is a collection of graphic effects and fades, varous ways to put a picture into a window or fade a picture out of a window. It was originally written by Mark Pilgrim. This version has a total of 67 effects and 60 fades. It also includes a binhexing utility.
__________
Apprentice:Source Code:C:Applications:
Roger Smith
rogers@golddisk.com
Metrowerks
68K,PPC
----------
Painted Black 0.91
Painted Black is a very small Screen Saver, running as an application. There is no incompatibility problem, and you can easily remove it from memory if you need it. You can tell PB to Paint the screen black by putting the mouse cursor in the bottom left corner of the main screen. It paints the screen black automagically after 5 minute of inactivity.
__________
Apprentice:Source Code:C:Applications:
Hubert Figuiere
figuiere@galaxie.int-evry.fr
http://www2.int-evry.fr/~figuiere/
Metrowerks
68K,PPC
----------
PICSee Dust 1.01
PICSee Dust is a general purpose PICS viewer. It will also save you lots of time and effort if you work with PICS files and need to edit all of the frames of the PICS on a "global" scale. For example, what do you usually do if you need to crop all of the frames of a PICS file? Probably export each frame as a PICT file, crop each frame manually, and merge all of the files back into the PICS file. Not for the lazy. Well no more! You can specify to PICSee Dust a crop area to apply to all of the frames or to a range of the frames. You can do this by using the convenient marquee or typing in the values yourself. PICSViewer also provides nice tools to shrinking/growing the marquee, giving you precise control over what area to crop.
__________
Apprentice:Source Code:C++:Applications:
Hiep Dam
starlabs@aol.com
Metrowerks
68K
----------
Portable Patmos
Portable Patmos is a BSD unix program environment. The advantages of this are that you can compile almost all BSD or GNU software including C and C++ without modifying the source code in any way. The original Patmos ran in protected mode, the preferred method for debugging, but for greater portability this version has been slimmed down to run on any 68020+ mac or powermac. It still is not compatible with virtual memory because it captures certain exceptions and trap vectors for supervisor use. If you try to start in VM mode you will get an explanatory message and the program will exit. To keep archive size down only the bare minimum to get going is included. This consists of the shell, the C compiler/assembler/linker, the automated build utility (make) and a few utilities.
PPPOn is a simple applet which opens a PPP session on a Mac with MacTCP and MacPPP installed. Nothing else. 68K and PPC CW7 projects included.
__________
Apprentice:Source Code:C:Applications:
Paul Celestin
celestin@celestin.com
Metrowerks
68K,PPC
----------
Python 1.3
Python is a Mac port of the Python programming language. The language itself is written in C (source code included), and it comes complete with documentation and tons of examples.
__________
Apprentice:Source Code:C:Applications:
Jack Jansen
jack@cwi.nl
ftp://ftp.python.org/pub/python/
Metrowerks,Symantec,MPW
68K,PPC
----------
Quotes 1.0
Quotes takes a random quote from a text file and presents it to the user. If MacInTalk is present, the quote will be spoken.
__________
Apprentice:Source Code:C++:Applications:
Jeffrey Kraus
krausj@mailbag.com
Symantec
68K
----------
Register Me 1.0b1
Register Me is an example of the interface to a registration application. It asks for your information and then goes about the motions of either saving it to a text file, or allowing you to send the information. Of course, it does neither, but it is useful to see how one might design a registration client. Includes 68K and PPC projects for CW7. Also includes 68K project for THINK C 7.
__________
Apprentice:Source Code:C:Applications:
Paul Celestin
celestin@celestin.com
Metrowerks,Symantec
68K,PPC
----------
ResAnomaly 1.2
ResAnomaly is a programmer's utility which, given a resource file, generates a C source code listing of all named resources in the file. It is highly customizable and source code is included (you can modify ResAnomaly to support other languages without recompiling - take a look at the TEXT resources in the resource fork.)
__________
Apprentice:Source Code:C++:Applications:
Chris Thomas
ckt@best.com
/info-mac/dev/
Metrowerks
68K,PPC
----------
Rumor Mill
Rumor Mill is an application that allows users within the same AppleTalk zone to send anonymous rumor messages to all other users also running Rumor Mill. NBP is used to register the rumor mill application on the network, and DDP is used to transmit the message packets. The messages are simply Str255 pascal strings. A DDP socket listener is installed to receive the packets. This listener was taken directly from Inside Macintosh: Networking, and the checksum code was taken directly from Inside Macintosh Volume II. The listener code is written in 68k assembly, as it is called at interrupt time. For each DDP packet it receives, it copies the data into a buffer and adds the buffer to a pending queue that is later read by the application.,,The application code was written using CodeWarrior 7, and all of it is in main.c.
__________
Apprentice:Source Code:C:Applications:
Cary Farrier
Cary_Farrier@qm.claris.com
exclusive
Metrowerks
68K
----------
SeeMovieRun 2.0
SeeMovieRun is an example of how you can make your application play QuickTime movies. It uses the THINK Class Library 2.0, implementing a movie object that handles displaying and playing of a QuickTime movie. CMovie is a subclass of CPane so it is easy to utilize as a drawing environment. The CMovie class automatically adds the standard movie controller to the movie it is currently using. CMovie uses only a few QuickTime calls to perform its magic. It centers around a few Movie ToolBox calls for loading the movie resources into RAM such as OpenMovieFile and NewMovieFromFile. A few utility-type routines such as GetMovieBox and GoToBeginningOfMovie are used to prepare the movie for playback.
__________
Apprentice:Source Code:C++:Applications:
Gregory Bonk
NComfort@aol.com
AOL:MacDev:
Symantec
68K
----------
µSim 1.0.5
µSim models a microprogrammed processor similar to the one described in the book _Structured Computer Organization_ by Andrew S. Tanenbaum. Its hardware components and instruction set are fixed (not too much, as we will see) but its microprogram is fully editable in a user friendly manner. The processor has access to a 128K Random Access Memory (it borrows from your Mac); you can easily view, modify, load or save this portion of memory. You can run programs and debug them with a step by step execution. Namely, you can advance by a conventional instruction, by a microinstruction, and even by a clock subcycle observing the internal parts of the processor. You can work on only one document (microprogram) at a time.
SML/NJ is a Mac implementation of the Standard ML (New Jersey) programming language.
__________
Apprentice:Source Code:C:Applications:
Soren Christensen
schristensen@daimi.aau.dk
ftp://research.att.com/dist/ml/
Symantec
68K
----------
Snow 1.2
Snow is an application that plays sleigh bells and floats snowflakes down the screen. Includes CodeWarrior and Symantec project files for PPC and 68k versions.
__________
Apprentice:Source Code:C:Applications:
Dave Warker
dwarker@acy.digex.net
Symantec,Metrowerks
68K,PPC
----------
SoundSwirl 1.1
SoundSwirl is a small application that generates geometric shapes around the mouse pointer. The shape's size corresponds to the current sound level of the built-in microphone. Thus, you must have sound-input hardware to use this program. Ported to CodeWarrior from the original project by Brent Burton. Includes 68K and PPC projects.
__________
Apprentice:Source Code:C:Applications:
Paul Celestin
celestin@celestin.com
Metrowerks
68K,PPC
----------
stuff 1.0.2
stuff is a utility which will create a StuffIt 1.5.1 archive of files and/or folders dropped onto it. The application itself is quite small, making it a nice drag n drop stuffer. 68K and PPC projects included for CW7. 68K project also included for THINK C 7.
__________
Apprentice:Source Code:C:Applications:
Jonathan Kimmitt
jrrk@camcon.co.uk
Metrowerks,Symantec
68K,PPC
----------
Teapot
Teapot is an example of 3-D graphics on the Mac. Useless in itself, it is meant to inspire others.
__________
Apprentice:Source Code:C:Applications:
David Phillip Oster
oster@netcom.com
Symantec
68K
----------
Telnet 2.7b5
Telnet is the popular Telnet application from NCSA. Requires a TCP/IP connection.
__________
Apprentice:Source Code:C:Applications:
C Popetz
cpopetz@uiuc.edu
ftp://ftp.ncsa.uiuc.edu/Mac/Telnet/
68K,PPC
----------
TrapsGen 1.0.1
TrapsGen is a quick hack which takes the Universal Headers version of ,the Traps.h file (possibly earlier versions, I don't remember how it ,used to be formatted) and automagically generates a C source file ,containing a table with entries. All portions of the text not taken from Traps.h are kept in TEXT resources, so you can modify whatever you don't like without modifying the source. PPC project for CW7 included.
__________
Apprentice:Source Code:C++:Applications:
Chris Thomas
ckt@best.com
Metrowerks
PPC
----------
unshar 1.11
unshar is a utility which will extract files out of shell archives. It does not work with all shell archives, but it works with enough of them to be useful. Includes MPW make file, CodeWarrior (68K and PPC), and THINK C projects.
__________
Apprentice:Source Code:C:Applications:
Sak Wathanasin
sw@nan.co.uk
Metrowerks
68K,PPC
----------
Until That Day 1.0.2
Until That Day is a little application to tell you the time left before that someone special arrives. 68K and PPC projects for CW7 included.
__________
Apprentice:Source Code:C:Applications:
Mark W. DeNyse
MarkDeNyse@aol.com
Metrowerks
68K,PPC
----------
ViewerTest
ViewerTest is a simple QuickDraw3D viewer. It will only run on a PowerMac with QuickDraw 3D installed. To compile the application, you will need the QuickDraw 3D libraries. These are freely available from Apple.
__________
Apprentice:Source Code:C:Applications:
Theron Trowbridge
theron@aimla.com
Metrowerks
PPC
----------
Mac C Primer V2
Mac C Primer V1 is the source code which accompanies the book, Macintosh Programming Primer, Volume 2 by Dave Mark.
__________
Apprentice:Source Code:C:By the Book:
Dave Mark
DMark@aol.com
http://www.spiderworks.com/dmark/
Symantec
68K
----------
Mac Pascal Primer, 4.0
Mac Pascal Primer is the source code which accompanies the book, Macintosh Pascal Programming Primer by Dave Mark.
__________
Apprentice:Source Code:C:By the Book:
Dave Mark
DMark@aol.com
http://www.spiderworks.com/dmark/
Symantec
68K
----------
Arrow CDEF 1.1
Arrow is a control definition that displays arrows, so you can toggle through a series of numbers, etc. Includes Metrowerks CodeWarrior C project.
__________
Apprentice:Source Code:C:Code Resources:
David Hay
hay@cs.colorado.edu
Metrowerks
68K
----------
CDEF - DeBugger 2.0.2
CDEF - DeBugger is a pretty cool little hack to allow you to debug a code resource from within your application. The example that is given here is for a control defintion or a "cdef" as they are normally called. This version should work on both 68k and PPC Macs.
__________
Apprentice:Source Code:C:Code Resources:
Doug Jones
LLStudio@eWorld.com
Symantec
68K,PPC
----------
cicnButton CDEF 1.3
cicnButton is a CDEF (control definition) that allows you to use cicn color icons as buttons instead of the drab black and white buttons that you are used to. You can use it just about anywhere. It has been tested on various machines and includes a small application demonstrating its use.
__________
Apprentice:Source Code:C:Code Resources:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
Color MDEF
Color MDEF is a menu definition which allows a user to select a color from a matrix of color chips.
__________
Apprentice:Source Code:C++:Code Resources:
Jordan Zimmerman
jordanz@altura.com
/info-mac/dev/lib/
Metrowerks
68K
----------
ColourBlock CDEF 1.1.1
ColourBlock CDEF is a CDEF for retrieving a block of colour from the user. 68K project for CW7 included.
__________
Apprentice:Source Code:C:Code Resources:
Dair Grant
dair@kagi.com
/info-mac/dev/src/
Metrowerks
68K
----------
Jims CDEFs 1.50
Jims CDEFs is a collection of control definitions. You'll find a wide variety here, including: 3D Check Buttons (a3d replacement for the standard button CDEF, but with real check marks for checkboxes), GroupBox (for titled boxes with text in upperleft corner), PopUp Menu (System 7 style popup menu control for System 6 or 7), Spinner (a "little arrows" control), Date & Time (Date & Time control using "little arrows"), Tog Button (a new type of "one or many" control), HSlider (a horizontal slider control), VSlider (a vertical slider control), 3D Buttons (a 3d replacement for the standard button CDEF), Progress Bar (a "thermometer" or "barber pole" progress indicator), TabPanel (a "Tab Panel" control like the one in MSWord), Slider (a vert or horiz slider), and 3D Buttons-rect (a rectangular version of the 3D Buttons CDEF).
__________
Apprentice:Source Code:C:Code Resources:
James G. Stout
JimS@WRQ.COM
/info-mac/dev/src/
Metrowerks,Symantec
68K,PPC
----------
PICTButton CDEF 1.3
PICTButton is a CDEF (control definition) that allows you to use PICT resources as buttons instead of the drab black and white buttons that you are used to. You can use it just about anywhere. It has been tested on various machines and includes a small application demonstrating its use.
__________
Apprentice:Source Code:C:Code Resources:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
PopupCDEF 1.3
PopupCDEF implements a popup menu control. The CDEF handles display of the menu's title, the current selection, the one pixel drop shadow, and teh triangle at the end of the menu. It also handles tracking of the mouse and checking and unchecking of the current item. It is compatible with systems 6.0.5 and 7.0. The CDEF is modeled after the popup CDEF provided by Apple in System 7.0 and described in Inside Mac Toolbox Essentials. Complete C source code and a THINK C 7.0 project are provided.
__________
Apprentice:Source Code:C:Code Resources:
Ari Halberstadt
ari@shore.net
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Progress CDEF 1.3
Progress is a CDEF (control definition) that allows you to display a simple thermometer progress bar, similar to the one the Finder uses when it shows you a file copy in progress. You can use it just about anywhere. I've tested it on various machines and it seems to work fine.
__________
Apprentice:Source Code:C:Code Resources:
Paul Celestin
celestin@celestin.com
Metrowerks
68K
----------
Argus Starter 2.0
Argus Starter is an application framework. It demonstrates more than some starter applications and includes some useful function libraries. Although you can feel free to use this starter application and function libraries as you wish, there is no expressed or implied warranty as to the performance of the software.
__________
Apprentice:Source Code:C++:Frameworks:
Argus Software
73741.2415@compuserve.com
Symantec
68K
----------
ControlStripShell 1.0.2
ControlStripShell is a sample Control Strip module project that shows you how to use a popup menu in a Control Strip module. Updated for CodeWarrior 7.
__________
Apprentice:Source Code:C:Frameworks:
Marty Wachter
mrw@welchgate.welch.jhu.edu
/info-mac/dev/src/
Metrowerks
68K
----------
Extension Shell 1.4
Extension Shell is an INIT code resource shell that minimizes the amount of rewriting that you will have to do when creating extensions.
__________
Apprentice:Source Code:C:Frameworks:
Dair Grant
dair@kagi.com
/info-mac/dev/src/
Metrowerks
68K
----------
Grant's CGI Framework 1.0b12
Grant's CGI Framework is a framework for writing 68K & PowerPC Macintosh CGI applications in C. The user of the framework only needs to modify one function (located in its own file) to produce a custom CGI - all the other details are handled by the framework. There are numerous options for customization. Macintosh programming experience is not required (although it helps) - but at least a basic knowledge of the ANSI C language will be neccessary.
__________
Apprentice:Source Code:C:Frameworks:
Grant Neufeld
grant@kagi.com
http://arpp1.carleton.ca/grant/mac/
Metrowerks
68K,PPC
----------
TransSkel 3.23
TransSkel is a complete shell for creating just about any application on the Mac. It is both comprehensive and instructional. Includes TransSkel, TransDisplay, and TransEdit. Includes THINK C project, as well as 68K and PPC projects for CodeWarrior.
__________
Apprentice:Source Code:C:Frameworks:
Paul DuBois
dubois@primate.wisc.edu
ftp://ftp.primate.wisc.edu/pub/mac/TransSkel/
Metrowerks,Symantec
68K,PPC
----------
Abalone 1.4.2
Abalone is a very nice stratetic board game for two or more players. If you don't know the rules, you can read about them in the About box. This program is a Macintosh implementation of the game Abalone. Each of the two or three Abalone players can be humans (local or remote on the network) or Macs, so you can use the program.
__________
Apprentice:Source Code:C:Games:
Peter Tax
ecotax@xs4all.nl
Metrowerks,Symantec
68K,PPC
----------
Arashi 1.1.1
Arashi is an arcade game that supports 256 colors or grays. It is based on the vector-drawn graphics of popular arcades hits.
__________
Apprentice:Source Code:C:Games:
Juri Munkki
jmunkki@snakemail.hut.fi
/info-mac/dev/src/
Symantec
68K
----------
Connect-4 v3.0
Connect-4 provides the functions necessary to implement a front-end-independent, device-independent Connect-4 game. Multiple board sizes are supported. It is also possible to specify the number of pieces necessary to connect in a row in order to win. Therefore, one can play Connect-3, Connect-5, etc. An efficient tree-searching algorithm (making use of alpha-beta cutoff decisions) has been implemented to insure that the computer plays as quickly as possible. Includes a very simple version of the game, which illustrates how the Connect-4 functions can be used to construct an implementation of an actual full-featured game. Includes sample TestGame project for 68K and PPC.
__________
Apprentice:Source Code:C:Games:
Keith Pomakis
pomakis@pobox.com
ftp://calum.uwaterloo.ca/pub/u/kppomaki/
Metrowerks
68K,PPC
----------
Glypha 3v2
Glypha 3 is a full-color arcade-style game similar to Joust. Demonstrates how to deal with graphics, sounds, and all the other things you need to deal with when designing a game. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Games:
john calhoun
jcalhoun@databank.com
Metrowerks
68K,PPC
----------
GNU Chess 3.0.3
GNU Chess is a Mac implementation of the GNU chess program. 68K and PPC CodeWarrior 7 project files included.
__________
Apprentice:Source Code:C:Games:
Mark Wilkins
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Hamurabi 1.1
Hamurabi is a C implementation of a popular old BASIC game. You're in charge, and you must make sure your people are well taken care of. You will get a year by year assessment of your performance. 68K and PPC CodeWarrior 7 projects included.
__________
Apprentice:Source Code:C:Games:
Paul Celestin
celestin@celestin.com
68K,PPC
----------
Mine Sweeper 1.1
Mine Sweeper is one of those mindless "let's try to get to the other side of the field without blowing up" games. 68K and PPC CodeWarrior 7 projects included.
__________
Apprentice:Source Code:C:Games:
William Edward Woody
woody@alumni.cco.caltech.edu
Metrowerks
68K,PPC
----------
On the Edge 3.0.1
On the Edge is a game written in C. The object is to place the Kings, Queens, and Jacks in their squares, which are labeled on the board. You draw cards, one at a time, and must place each crd on a square of the board. If you are unable to place a face card in its proper position, the game is over. 68K and PPC projects included for CodeWarrior 7. 68K project also included for THINK C 7.
__________
Apprentice:Source Code:C:Games:
John Stiles
Metrowerks,Symantec
68K,PPC
----------
Pentominoes 2.0
Pentominoes is a Mac version of the popular board game. Includes complete source code in C.
__________
Apprentice:Source Code:C:Games:
Mark Pilgrim
f8dy@netaxs.com
/info-mac/dev/src/
Metrowerks
68K
----------
Safari 2.4.1
Safari is a simple black and white game originally by John Gallaugher. Try to shoot the animals with a politically-correct tranquilizer gun before they stampede off the screen. A few simple features were added during the conversion to CW7 and THINK 7. It also now runs native on a PowerMac.
__________
Apprentice:Source Code:C:Games:
Paul Celestin
celestin@celestin.com
Symantec,Metrowerks
68K,PPC
----------
SinkShips 2.2.1
SinkShips is an update to a game by Matthew Kavalauskas. The object is to sink the computer's ships before it sinks yours. Sort of like a board game with the same premise. The original game was done in THINK C version 5. This update has 68K and PPC projects for Metrowerks CodeWarrior, as well as a 68K project for THINK C version 7.
__________
Apprentice:Source Code:C:Games:
Paul Celestin
celestin@celestin.com
Symantec,Metrowerks
68K,PPC
----------
Tetris Light 1.0.2
Tetris Light is a light-weight implementation of Tetris for the Macintosh. It does not require color or other high-level features. It has been updated for the new compilers and comes with 68K projects for CW7 and THINK C 7.
__________
Apprentice:Source Code:C:Games:
Paul Celestin
celestin@celestin.com
Metrowerks,Symantec
68K
----------
Xconq 7.0.1
Xconq is not just a game, it's a game design system. It provides game designers with a variety of tools to help design new kinds of strategy games. Xconq has its own language, called GDL, a declarative Lisp-like language with considerable power.
__________
Apprentice:Source Code:C:Games:
Stan Shebs
shebs@cygnus.com
ftp://ftp.cygnus.com/pub/xconq/
68K
----------
appe Windows 2.03
appe Windows demonstrates a shell application that puts a TSM (Text Services Manager) window onto the screen, intercepting updates, clicks, and key events. Includes CodeWarrior (68K and PPC) and THINK C projects.
__________
Apprentice:Source Code:C:Snippets:
Matt Slot
fprefect@engin.umich.edu
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Append 1.0.2
Append is a snippet which lets you append chosen text files together. Pick the first file, and then subsequent choices from the StandardFile dialog are tacked onto the end of it. 68K (CodeWarrior and Symantec) and PPC (CodeWarrior) projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K,PPC
----------
AppendDITL 1.0.2
AppendDITL Demo demonstrates the correct way to use AppendDITL(), CountDITL(), and ShortenDITL() Dialog Manager calls in System 7. It also shows how to correctly use the WindowFont for drawing text in a dialog. 68K and PPC projects for CodeWarrior included.
__________
Apprentice:Source Code:C:Snippets:
Marty Wachter
mrw@welchgate.welch.jhu.edu
Metrowerks
68K,PPC
----------
AppLauncher 1.0d0
AppLauncher shows you how to launch, open with document, hide, and quite remote applications, as well as how to open a control panel from within an application. C++ source code for both 68K and PPC.
__________
Apprentice:Source Code:C++:Snippets:
Andrew Nemeth
aznemeng@zeta.org.au
http://zeta.org.au/~aznemeng/
Metrowerks
68K,PPC
----------
ArrayTrickery in C
ArrayTrickery in C is a quick routine that shows you how to dynamically create multidimensional arrays in C.
__________
Apprentice:Source Code:C:Snippets:
Stefan Sinclair
TrickyS@aol.com
AOL:MacDev:
Metrowerks,Symantec,MPW
68K
----------
AsynchSnd 1.0.2
AsynchSnd is a snippet which demonstrates asynchronous sound playing. Hitting number keys and clicking the mouse button will play sounds. 68K (CodeWarrior and Symantec) and PPC (CodeWarrior) projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K,PPC
----------
Background ppat 1.0.1
Background ppat is a simple demonstration of how to create a background using a ppat. This demonstration uses the System ppat, but you could use any ppat you like. Includes CodeWarrior 7 (68K and PPC) and THINK C 7 (68K projects).
__________
Apprentice:Source Code:C:Snippets:
Paul Celestin
celestin@celestin.com
Symantec,Metrowerks
68K,PPC
----------
BackInUse 1.0.2
BackInUse is a program written in C which draws a six point poly, then insets the points a certain amount and keeps redrawing until it gets to nothing. Then, it erases the picture and starts the entire process again. All in black and white. Projects (68K and PPC) for CodeWarrior included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
BlazingPix 1.0.2
BlazingPix is a simple application that demonstrates some crude animation techniques. After running the app, the user is greeted with a window and a icon that can be moved around with a mouse. Clicking the mouse exits the program. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Jay Riley
Metrowerks
68K,PPC
----------
cicnAnimDemo 1.0.2
cicnAnimDemo is a program written in C which demonstrates a method for animation using cicns. Projects (68K and PPC) for CodeWarrior included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
Class_DataList
Class_DataList is similar to a container class, except that the entries in the DataList are variable-sized entities. Note that in order to use variable-sized data, the DataList requires that each entry be prefixed by a length data type. This is most useful for string-like data types - although they *don't* have to be strings. A prime example of the variable-sized data that DataList uses are pascal strings, which are a stream of chars prefixed by a length byte. Because it's only a byte, the string is limited to 255 chars. However, this need not be hard-coded. You can tell DataList what size the length prefix is, thereby setting your own string length limits. All of this makes DataList an extremely useful tool for dealing with variable-sized data.
__________
Apprentice:Source Code:C++:Snippets:
Hiep Dam
starlabs@aol.com
Metrowerks
68K
----------
CModalDialog Class
CModalDialog is a C++ class which takes over the basics of displaying a dialog. CModalDialog allows you to define the current default and cancel buttons on the fly. It also allows you to customize the dialog through filters by simply inheriting CModalDialog and modifying the proper virtual filter functions.
__________
Apprentice:Source Code:C++:Snippets:
Michael Kamprath
kamprat@leonardo.net
http://www.leonardo.net/kamprath/
Metrowerks
68K,PPC
----------
ColorStars 1.0.2
ColorStars is a program written in C which demonstrates a flight through 3x3 antialiased stars. Movement is controlled by mouse location while speed and direction are controlled by the '+' and '-' keys. Clicking the mouse or hitting the 'q' button quits. If run in 1 bit mode, the stars are 1x1. Projects (68K and PPC) for CodeWarrior included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
Count 1.0.1
Count is a small program that will count from the starting number to the stop number, using the character 'fs' as the field seperator.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K,PPC
----------
CTCPNetwork
CTCPNetwork is a minimalist's approach to asynchronous MacTCP connections. It is quite similar to PowerTCP, but it has better error handling. You are free to use CTCPNetwork, no strings attached, although the author would appreciate some credit in your about box or wherever appropriate.
__________
Apprentice:Source Code:C++:Snippets:
Hiroshi Lockheimer
lockheimer@twics.com
Metrowerks
68K
----------
CustomDialog Demo
CustomDialog Demo is just a C version of the GetVolume Pascal code found in Inside Macintosh: Files pp 3-38 to 3-40 including the dialog hooks and filters. This version is written in C and takes into account Universal Procedure Pointers for PPC and 68K code.
__________
Apprentice:Source Code:C:Snippets:
Carl B. Constantine
CCONSTAN@pinc.com
exclusive
Metrowerks
68K,PPC
----------
DialogControls 1.1.1
DialogControls shows how to do different things with dialogs: set the window font and size; patch NewControl() so that you have controls in the window font; use Popup Menus in modal dialogs; use AppendDITL() to get a NewsWatcher-like preferences box; use styled text edit records from resources to display text; write a filter for a ModalDialog; and, use MovableModal dialog boxes. 68K and PPC CodeWarrior 7 project files included.
__________
Apprentice:Source Code:C:Snippets:
Todd Clements
tclement@osiris.ac.hmc.edu
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Dim Text 3.0
Dim Text is a group of routines for dimming text items in dialogs. As is, it assumes that you are not using the dialog's refCon for anything else.
__________
Apprentice:Source Code:C:Snippets:
James Walker
JWWalker@kagi.com
Metrowerks
68K,PPC
----------
Draw n Save 1.1
Draw n Save puts up a window, lets you "draw" into the window (press a key to exit) and then lets you save your drawing as a standard PICT file.
__________
Apprentice:Source Code:C:Snippets:
Hiep Dam
starlabs@aol.com
Metrowerks,Symantec
68K
----------
DynamoArray
DynamoArray is a C++ template class. Used to maintain a dynamic list of items that are to be randomly chosen, one item at a time.
__________
Apprentice:Source Code:C++:Snippets:
Hiep Dam
starlabs@aol.com
Metrowerks
68K
----------
Equation Evaluator
Equation Evaluator is a port of C routines posted several years ago to a DOS archive by Mark Morley. The Equation Evaluator takes an equation in the form of a text string and returns a value.
__________
Apprentice:Source Code:C++:Snippets:
Rob Douglas
rdouglas@mckellar.com
68K,PPC
----------
ErrorString
ErrorString is a collection of 'Estr' resources and code to use them. Simply include the desired resource files in your project and call the GetErrorString or DisplayErrorCode as needed with the error number.
__________
Apprentice:Source Code:C:Snippets:
Mark Sproul
sproul@eos.ap.org
Metrowerks,Symantec
68K
----------
Finder Marquee
Color MDEF is a menu definition which allows a user to select a color from a matrix of color chips.
__________
Apprentice:Source Code:C:Snippets:
Jordan Zimmerman
jordanz@altura.com
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Float2Str255
Float2Str255 is a very small routine for converting floating point decimal numbers into Pascal strings.
__________
Apprentice:Source Code:C:Snippets:
Stefan Sinclair
TrickyS@aol.com
AOL:MacDev:
Metrowerks,Symantec,MPW
68K,PPC
----------
Floating
Floating is a set of routines to handle floating windows in C.
__________
Apprentice:Source Code:C:Snippets:
John DeWeese
jdeweese@sytex.net
Metrowerks,Symantec,MPW
68K,PPC
----------
FontShow 1.1.4
FontShow is a program which allows you to create a sample display or printout of any of your installed fonts. C project for CodeWarrior included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K
----------
GameShell
GameShell is a simplified gameshell for Mac game programmers. Deals with most of the MacOS so you don't have to! Handles: hiding/showing menubar, backdrop windows for current and all monitors, and appropriate behavior when switching in/out of GameShell.
__________
Apprentice:Source Code:C++:Snippets:
Hiep Dam
starlabs@aol.com
Metrowerks,Symantec
68K,PPC
----------
getopt
getopt is a function that is in the stdlib of the SunOS version of UNIX. A small number of UNIX programs depend on it. This is a hacked up version someone might find useful for parsing command-line options during the early stage of a UNIX->Mac port. Terrible commenting, not much docs, but if you need to use it, you probably know what it does.
__________
Apprentice:Source Code:C:Snippets:
Samuel John Kass
samkass+@CMU.EDU
68K
----------
GNU String/Regex
GNU String/Regex is a brutally hacked version of the string and regular expression classes from the GNU C++ lbg++2.3.1. They were hacked to make them compile under CodeWarrior.
__________
Apprentice:Source Code:C++:Snippets:
Ward Willats
ward@cyno.com
Metrowerks
68K,PPC
----------
HexThing 1.0.1
HexThing is a little snippet that puts up a window, draws 4 scroll bars with values of 0 to 15, then "converts" control values int hex, decimal and bit values for the two bytes they represent. The "conversion" was done with switched DrawString substitutes for control values passed. 68K projects for CodeWarrior and THINK included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K
----------
IC++ 1.0b1
IC++ is a C++ class for working with Internet Config. This is a beta release. It's been pretty extensively tested with Internet Config, but there are probably other things you will want it to do. IC++ is free to use, but I'd appreciate any bug fixes or additional functionality.
__________
Apprentice:Source Code:C++:Snippets:
Dan Crevier
dan@rhino.harvard.edu
ftp://rhino.harvard.edu/pub/dan/
Metrowerks
68K,PPC
----------
icl8 LDEF 2.0
icl8 LDEF calls on PlotIconID() to draw the icons; thus depending on the depth and cell size of whatever gets drawn, icl8, ics8, or icl4, etc. is used. What distinguishes this LDEF from the many masses of other LDEFs out there is the different ways this LDEF supports hiliting a cell: hilite by plain old inversion (if the background isn't white, you'll get a funky result); hilite by using the hilite color; framing the cell using a black border; framing the cell using the hilite color; framing the cell using a custom drawing routine inside the LDEF; the border looks like the border of the movable modal dialogs in System 7.
__________
Apprentice:Source Code:C++:Snippets:
Hiep Dam
starlabs@aol.com
Metrowerks
68K
----------
Imaging Examples 1.0.1
Imaging Examples is a collection of examples straight from the pages of Inside Mac - Imaging. If you want ideas on how, here are over a dozen of them. 68K and PPC CodeWarrior projects included. 68K THINK project also included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K,PPC
----------
Ken's Cursing 1.0.1
Ken's Cursing is an example of how you might do a spinning cursor without using a VBL task. This one spins a color apple until you click the mouse button. 68K and PPC CodeWarrior projects included. 68K THINK project also included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K,PPC
----------
Local Format
Local Format is a set of routines for formatting Numbers and Currency. On the Macintosh OS, the "Numbers" control panel provides the user with a way to define what region they are in. The Finder will use this information to display numbers in a localized format. If you want your application to display numbers and monetary amounts in the correct format for the region your user in is, all you have to do is call the correct routine in locfmt.c.
__________
Apprentice:Source Code:C:Snippets:
Dale Semchishen
Dale_Semchishen@mindlink.net
exclusive
Metrowerks,Symantec
68K,PPC
----------
MacLZSS 1.0.2
MacLZSS is a simple application that demonstrates the LZSS compression technique. It lacks a real interface, but it should serve as a useful example for someone looking for sample compression source code. Ported to CodeWarrior from the original Think C 3.x project by Rob Elliott. Includes both 68K and PPC projects.
__________
Apprentice:Source Code:C:Snippets:
Paul Celestin
celestin@celestin.com
Metrowerks
68K,PPC
----------
MovieScroll 1.0.2
MovieScroll is a program written in C which demonstrates how you might handle scrolling text, like at the end of movies. You can use it in about boxes, etc. Includes CodeWarrior project.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K
----------
MultiWin TE/Undo/S_H 1.0.1
MultiWin TE/Undo/S_H demonstrates a number of things. It can handle multiple windows/dialogs, the Edit menu, especially Undo, and using the scrap. It can also handle multiple edit text items in multiple dialogs. Creates a modeless version of Show_help, a program in the public domain from James Walker. Provides some useful routines to use along these lines. (Like Option-clicking in a goAway closes all open application windows.)
__________
Apprentice:Source Code:C:Snippets:
Eric Long
EricMLong@aol.com
AOL:MacDev:
Symantec
68K
----------
MyNewCard 1.0.2
MyNewCard is a program written in C which demonstrates how you might display an about box. It shows you a zoom rect effect and displays an about box. Click on the box to make it go away. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
New Venus
Venus is a "virtual" flying through the clouds thing which demonstrates how to create a simple virtual reality, including clouds and map rendering in 3D. Draws all images in off-screen GWorlds.
__________
Apprentice:Source Code:C++:Snippets:
Oleg Kiselyov
oleg@ponder.csci.unt.edu
ftp://replicant.csci.unt.edu/pub/oleg/
Metrowerks
PPC
----------
NewDynamic 1.0.1
NewDynamic was originally a MacPascal source (included) from Northwestern University. It was translated to Think C and improved. It originally put up a text window, asked for variations, and then would show the drawing window and two sets of 3 "sine" graphs of something some psychology professor thought had something to do with behavior/action.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K,PPC
----------
NewHelp 1.0.1
NewHelp is an itty bitty bytes(tm) rendition of the 1989 help demo by R. Fronabarger, translated from Pascal to C. The content of THIS help demo is the CTools(tm) help bank of data. 68K projects for CodeWarrior and THINK included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K
----------
NewLace 1.1.1
NewLace is an itty bitty bytes(tm) rewrite of the old MS QuickBasic demo called "Lace" with additional functionality and control. It puts up a full screen rDoc window (no multi monitor checking). Sprite diameter and offset data are shown in the title bar. Does a 'PICT' splash, with a delay. Shows a key command "PICT' with a delay (single key hit controls). Sets a 27x27 pixel rectangle at 0,0. Paints an oval in that rectangle, in B/W, in srcXor pen mode. Offsets the rect 2,2 and paints the oval again. Continues on and on, bouncing off the window bounds. 68K and PPC CodeWarrior projects included. 68K THINK project also included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K,PPC
----------
NewMaxwell 1.0.2
NewMaxwell is a program written in C which displays a bunch of smilie faces and black circles. Clicking the mouse opens a gate in the middle of the window, allowing objects from one side to get to the other. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
NewRae 1.0.2
NewRae is a snippet which puts up a window, fills it black, and then displays a series of 16x16 happy faces that begin to fall, one at a time from the top. When they hit the bottom, they bounce. Click the mouse button when you get tired of looking at the happy faces. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
NewRotation 1.0.2
NewRotation is a snippet which displays a three-dimensional object and rotates it. When you get tired of seeing the object rotate, hit the 'q' key on your keyboard. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
NewsFlash 1.0.2
NewsFlash is a snippet which puts up a wide, short window. Some 1pt text appears in the center and scales up to 12pt. It hangs there for three seconds and then continues to zoom forward until it goes off the edges. Then the window closes. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
NewStringArt 1.0.2
NewStringArt is a snippet which draws various spirograph-like pictures in a window on your screen. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
OSA_Runner 1.0d0
OSA_Runner is a native PPC Macintosh application and source code which shows how to call an AppleScript with/without variables from within an application.
__________
Apprentice:Source Code:C++:Snippets:
Andrew Nemeth
aznemeng@zeta.org.au
http://zeta.org.au/~aznemeng/
Metrowerks
PPC
----------
PaletteAnimation 1.0.2
PaletteAnimation is a snippet which draws a bunch of squares and then changes the palette to create a rainbow effect. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
PlayRiffs 1.0.2
PlayRiffs is a snippet which plays some cool guitar riffs. It also demonstrates some other cool stuff. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
Polygondrian 1.0.2
Polygondrian is a snippet which blackens the screen and then rapidly draws a bunch of polygons in color, one over another. Click the mouse button when you are tired of looking at them. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
PolyMaze 1.0.2
PolyMazes is a snippet which draws a labyrinth from the perspective of a person standing in front of it. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
PolyPumper 1.4.1
PolyPumper is an itty bitty bytes(tm) production. It was derived from,modifications of two source code projects: RadarScope and SplatMaster. RadarScope started life as the radard part of "BuzyBox" of MacHack fame, SplatMaster was originally by John Benton. PolyPumper 1.4 has increased controls over the 1.2 version, and includes a splash screen. The splash was created with Color It! 2.3, from MicroFrontier, and background pattern was created in SplatMaster 2.0. 68K and PPC CodeWarrior projects included. 68K THINK project also included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K,PPC
----------
PopupMenu Tester 1.0.2
PopupMenu Tester is a simple application which demonstrates the use of a System-7 popup menu, as well as a movable modal dialog. It doesn't do much else, but maybe it has something to offer to someone who is new to all of this. Includes CodeWarrior project.
__________
Apprentice:Source Code:C:Snippets:
Paul Celestin
celestin@celestin.com
Symantec,Metrowerks
68K
----------
PPP-Prefs
PPP-Prefs is a set of routines that allow you to add, delete, read, and write MacPPP preferences and configs.
__________
Apprentice:Source Code:C:Snippets:
Tony Andreoli
andreoli@owens.ridgecrest.ca.us
Metrowerks,Symantec
68K,PPC
----------
QD3D Juggler
QD3D Juggler implements two kinds of Quickdraw 3D rendered images. The first is nearly identical in function to the "Start Here" "boxes" demo supplied by Apple. The second is a "prop pane", which renders either a cube or a juggling club and then tumbles and moves it about the window. It is meant as an exploration of QuickDraw 3D Transform objects. Also, dragging in the window moves the camera position.
__________
Apprentice:Source Code:C++:Snippets:
James Jennings
jennings@halcyon.com
Metrowerks
68K
----------
QuickCamObjects
QuickCamObjects helps in controlling the QuickCam B&W camera. It provides some methods for doing some basic things like displaying to a GrafPort (window) and controlling the brightness. It even has a spot meter for automatic intensity control. It can snap pictures and make measurements.
__________
Apprentice:Source Code:C++:Snippets:
Paul Beeken
knowsoft@ios.com
Metrowerks
68K,PPC
----------
RadarScope 1.0.2
RadarScope is a snippet which draws a radar screen, showing a line making its way around the screen, like one of those radars you see in movies. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
ShowInitIcon 1.0.1
ShowInitIcon demonstrates the "correct" way to display an INIT's startup icon. Includes CodeWarrior project.
__________
Apprentice:Source Code:C:Snippets:
François Pottier
pottier@dmi.ens.fr
/info-mac/dev/src/
Metrowerks
68K
----------
SimpleParseUtils
SimpleParseUtils is a set of source code useful for very simple parsing tasks. These procs are totally inefficient, especially GetToken. Don't try to write the next C++ compiler with them. You could write a simple class browser, or possibly a compiler for a better language, but these could be written more efficiently still for such a purpose.
__________
Apprentice:Source Code:C++:Snippets:
Chris Thomas
ckt@best.com
/info-mac/dev/
Metrowerks
68K,PPC
----------
Solver
Solver is a collection of files that show how to: Support simple text editing in a dialog; use simple PICT resources for buttons in a dialog; support standard Edit Menu items such as Cut, Copy, Paste, Select All, Clear, and Undo; demonstrate how to use scroll bars to scroll a large picture in a window; display numbers in standard or exponential notation depending on their size; use PowerPC Procedures; simple error handling, and put an easter egg in your program - cool!
__________
Apprentice:Source Code:C:Snippets:
Stefan Sinclair
TrickyS@aol.com
AOL:MacDev:
Symantec
68K,PPC
----------
String Rotation
String Rotation takes a pascal string, rotates it 90 degrees in the desired direction and passes back a BitMap of the rotated string image. It is based upon some Apple sample source code called RotateString.
__________
Apprentice:Source Code:C:Snippets:
Guy Fullerton
hedgeboy@kagi.com
http://www.deltanet.com/users/hedgeboy/
Metrowerks,MPW,Symantec
68K,PPC
----------
SuperMarquee 1.0.2
SuperMarquee is a snippet which demonstrates how you can put marquee fields in your dialogs. These are fields that show scrolling text. The text will scroll forward until it reaches the end, and then it begins scrolling backward. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
SuperSplash 1.0d0
SuperSplash is a native PPC Macintosh application and source code which shows how to put up different kinds of splash screens. In order to display JPEG files, use is made of code by Aaron Giles, as included on the Apprentice 3 CD-ROM.
__________
Apprentice:Source Code:C++:Snippets:
Andrew Nemeth
aznemeng@zeta.org.au
http://zeta.org.au/~aznemeng/
Metrowerks
PPC
----------
Trench 1.0.2
Trench is a snippet which draws a simple black and white trench not unlike the one that the fighting space ships fly into at the end of a popular science fiction movie from the 70s. Move the mouse to move the perspective. Click to quit. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
TStr255
TStr255 class is a C++ class to replace the pascal Str255 string type. The class has been designed to be as transparent a 'drop-in' as possible, and the use of inline functions means you don't have to pay any speed penalties. A small CodeWarrior project has been included to show what the class is capable of. Step through the project's code in a debugger to see the strings chop and change.
__________
Apprentice:Source Code:C++:Snippets:
Andrew Nemeth
aznemeng@zeta.org.au
http://zeta.org.au/~aznemeng/
Metrowerks
68K,PPC
----------
VerticalString 1.0.2
VerticalString is a snippet which draws text strings in various colors vertically down the screen. Click to quit. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:C:Snippets:
Ken Long
kenlong@netcom.com
Metrowerks
68K,PPC
----------
Basic Black 1.5.1
Basic Black is a very simple and efficient screen saver. All it does it darken your screen and bounce an analog clock around. Project for THINK C included.
__________
Apprentice:Source Code:C:System:
Mason Bliss
mason@acheron.middleboro.ma.us
/info-mac/dev/src/
68K
----------
Boom! 2.0.2
Boom! is a System extension which adds functionality to your Mac (yeah, right). You know that little 'star' that gets drawn in the corner of a Mac Window when a window is closed, in the GoAway Box? Now that we have PowerPC's, wouldn't it be cool to have a little more definitive feedback than that little blink? This Hack was written start-to-finish at MacHack 94 using the MetroWerks compilers. You can see the animation by holding the shift key down, otherwise, nothing is touched. 68K project for CW7 included.
__________
Apprentice:Source Code:C:System:
Brian Hamlin
bhamlin@netcom.com
Metrowerks
68K
----------
CDIconKiller 1.3.4
CDIconKiller is an INIT that attempts to suppress all of those custom icons that people like putting on CD-ROMs. This tends to speed up your CD-ROMs by a factor of about a zillion. This version works with more than just Apple's CD-ROM. Includes CodeWarrior project.
CPCopland is a very small, simple hack: It fools the System into treating files with a type of 'APPC' as files of type 'APPL'. In other words, the System believes 'APPC' files are really applications. What's the point? Control Panels in Copland will be full-fledged applications. Therefore it would be a Good Thing to have a unified control panel standard for Copland and System 7. And, developers need to test Copland-destined Control Panels, and they can't do that until they actually posess Copland. CPCopland offers a way to do either.
__________
Apprentice:Source Code:C:System:
Chris Thomas
ckt@best.com
/info-mac/dev/
Metrowerks
68K,PPC
----------
GlueWindow 4.2.2
GlueWindow is a control panel that controls the window as if it GLUEs to the neighbor windows when you drag it.
__________
Apprentice:Source Code:C:System:
Takenori Kabeya
GBH06222@niftyserve.or.jp
/info-mac/dev/src/
Metrowerks
68K
----------
ModemTalk™ 1.0.2
ModemTalk is an "alternate AppleTalk Connection" which was written at Dartmouth College to provide dial-up AppleTalk connections for the campus. There is no widely available "ModemTalk server" program -- ModemTalk only communicates with a locally-developed terminal server. This distribution can be used as example source code for building your own adev/atlk. It contains C code which encapsulates the function calls received from the Network Control Panel and made to the LAP Manager. The person who wishes to develop an adev/atlk must write routines that implement "LAP Write" (ie, transmitting a packet out the link), "LAP Read" (ie, assembling a packet from the link, and calling one of the atlk's routines, and link startup and tear-down, and other link maintenance routines.
__________
Apprentice:Source Code:C:System:
Richard E. Brown
Richard.E.Brown@Dartmouth.EDU
ftp://ftp.dartmouth.edu/pub/mac/
Symantec
68K
----------
SmartDragWindow 1.0.1
SmartDragWindow is an utility which, during window dragging, "snaps" the window to the edges of the monitor and to the edges of other windows in the current application. You can also have the window snap to a hidden grid. Makes fudging your window positions much easier <grin>. Idea by John Pastore, implemented by Hiep Dam.
__________
Apprentice:Source Code:C:System:
Hiep Dam
starlabs@aol.com
Metrowerks
68K
----------
SysMenu 1.1.1
SysMenu is a shell project that demonstrates how to create and manage a system menu next to the Balloon Help menu. The project has been updated to compile under Metrowerks compiler using Universal Headers.
__________
Apprentice:Source Code:C:System:
Matt Slot
fprefect@engin.umich.edu
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
ABox 1.9.5
ABox is a set of C++ classes that have a rather API for client software, based mainly upon the early documentation regarding Apple's Speech Recognition Manager; the ABox has an object-oriented "properties" driven API, where instead of providing lots of methods to do lots of things, there are a handful of methods to do lots of things. Most importantly, all client-adjustable features of the ABox are driven through a pair of easy to use methods.
__________
Apprentice:Source Code:Libraries:
George Tempel
g.tempel@xpedite.com
ftp://ftp.topsoft.org/Visitors/TSabout/
Metrowerks
68K
----------
Apache 1.0
Apache is an HTTP server designed as a plug-in replacement for the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in the NCSA server and includes many frequently requested new features, and has an API which allows it to be extended to meet users' needs more easily. This program is distributed in source form only. In order to compile it, you must set compile-time options (in particular, system type) for your system by editing a Configuration file, run a script which generates a Makefile and a small piece of C code, and then compile it. This software consists of voluntary contributions made by many individuals on behalf of the Apache Group and was originally based on public domain software written at the National Center for Supercomputing Applications, University of Illinois, Urbana-Champaign.
__________
Apprentice:Source Code:Libraries:
The Apache Group
http://www.apache.org/
68K,PPC
----------
Berkeley DB 1.8.5a
Berkeley DB is the Berkeley database package, ported to Metrowerks CodeWarrior. To use it in your programs, you need CWGUSI, which also is available on Apprentice. 68K and PPC CodeWarrior projects included.
__________
Apprentice:Source Code:Libraries:
Matthias Neeracher
neeri@iis.ee.ethz.ch
http://err.ethz.ch/members/neeri.html
Metrowerks
68K,PPC
----------
Blitting Class Library
Blitting Class Library is the evolution of some direct blitting classes the author created for personal use. The result was a much simpler and cleaner design that can be useful to anyone interested in speeding up their graphics routines on the Macintosh. If you want to directly access a GWorld (an offscreen graphics world), all you have to do is supply a pointer to it in the constructor for a GWorldAccessor object.
__________
Apprentice:Source Code:Libraries:
Macneil Shonle
MacneilS@aol.com
AOL:MacDev:
Metrowerks
68K,PPC
----------
BSP Tree 1.2
BSP Tree is a simple application to demonstrate the use of Binary Space Partitioning (BSP) Trees for hidden surface removal and Solid Modelling. The source provided is a series of three Metrowerks CodeWarrior 7 projects (both 68k and PPC) which implement the Macintosh application core, the graphics library, and finally, this application. In total, six project files are provided. The code is not intended to present a model application, nor is it intended to be the most efficient possible. Please report any bugs to Bretton Wade at the address below.
__________
Apprentice:Source Code:Libraries:
Bretton Wade
bwade@qualia.com
Metrowerks
68K,PPC
----------
C Internet Config
C Internet Config is port to C of a library of routines which helps to organize the numerous configuration parameters you might need when dealing with the Internet and all of the tools. The goal is to simplify the user's experience, and the primary focus is the reduce the number of times a user is required to enter information like an email address. Several Internet applications now support Internet Config, such as Anarchie and Newswatcher. If you want to add support to your own application, you need this!
__________
Apprentice:Source Code:Libraries:
Dave Nebinger
dnebing@epix.net
Symantec
68K
----------
Caveman Sound System
Caveman Sound System is a high-level library of C routines for playing sound on the Macintosh. These routines were designed with games in mind, but could be used for other purposes as well. To use The Caveman Sound System, simply include the file "CMSoundSystem.c" in your project and include "CMSoundSystem.h" in the file calling the sound system. Documentation for using the sound system is provided in the "CMSoundSystem.h" header file. I have tried to make the documentation as complete as possible, but either the source code or myself may be consulted if a question should arise.
__________
Apprentice:Source Code:Libraries:
David Hay
hay@cs.colorado.edu
/info-mac/dev/lib/
Symantec
68K
----------
ClutFade 1.3
ClutFade is a demo of screen fading operations which can be used to make your games more professional looking. Not only does the clut_fade library let you fade to and from black, but it also provides routines to fade to and from a specific color or a specific clut. It also provides some control over which monitors are faded.
__________
Apprentice:Source Code:Libraries:
Mark Womack
MarkWomack@aol.com
AOL:MacDev:
Symantec,Metrowerks
68K,PPC
----------
Copland ResourcesLib
Copland ResourcesLib will get you ready for the inevitable coming of System 8. The System 7 resource manager is redefined in terms of the System 8 Resource Manager. Make this file as a shared library.
__________
Apprentice:Source Code:Libraries:
Chris Thomas
ckt@best.com
/info-mac/dev/
Metrowerks
68K,PPC
----------
CW GUSI 1.6.4
CW GUSI is an extension and partial replacement of the standard C runtime library supplied with your compiler. Its main objective is to provide a more or less simple and consistent interface across the communication domains. Additionally, GUSI adds some UNIX library calls dealing with files which were missing, like chdir(), getcwd(), symlink(), and readlink(), and changes a few other library calls to behave more like their POSIX counterparts. Includes CodeWarrior projects.
__________
Apprentice:Source Code:Libraries:
Matthias Neeracher
neeri@iis.ee.ethz.ch
http://err.ethz.ch/members/neeri.html
Metrowerks
68K,PPC
----------
CW TCL port package 1.9
CW TCL port package is a set of files which will enable you to compile the Think Class Library version 2.0 with the Metrowerks CodeWarrior 68K and PowerPC compilers. Read this document carefully before using the package.
__________
Apprentice:Source Code:Libraries:
Marty Wachter
mrw@welchgate.welch.jhu.edu
Metrowerks,Symantec
68K,PPC
----------
DCLAP 4j
DCLAP (Don's Class Application) library is a C++ class library for building applications on the common windowing operating systems (Macintosh, MS-Windows, XWindow-Motif and possibly others). This is built on the cross-platform toolkit from National Center for Biotechnology Information (NCBI) of the National Library of Medicine (NLM), called NCBI toolkit, and especially the Vibrant window system subset, plus the corelib subset. This toolkit is written in ANSI C and compiles on a variety of systems.
__________
Apprentice:Source Code:Libraries:
Don Gilbert
gilbertd@bio.indiana.edu
ftp://iubio.bio.indiana.edu/util/dclap/
68K
----------
DepthLib 1.0
DepthLib is a library of routines that let you get the depth of a monitor and set the depth of a monitor. Sometimes when writing games you want to force the monitor to 256 colors or you want to make sure you have at least 16 colors. This library has routines to do just that.
__________
Apprentice:Source Code:Libraries:
Mark Womack
MarkWomack@aol.com
AOL:MacDev:
Symantec,Metrowerks
68K,PPC
----------
Dots & Pixels
Dots & Pixels contains some C++ classes to generate random dot and random pixel displays. Two example programs, Differential and Transparency, are included. Both names are misnomers, since the programs have grown in scope over time. Differential shows the random dot display capabilities of the library, Transparency shows some random pixel display capabilities.
__________
Apprentice:Source Code:Libraries:
Reinder Verlinde
reinder@neuretp.biol.ruu.nl
Symantec
68K,PPC
----------
FSpDelTree 1.10
FSpDelTree deletes a non-empty directory. Among all the wonderful directory and file management routines described by Apple in their "Inside Macintosh - Files" publication, none seem able to delete a non-empty directory.
__________
Apprentice:Source Code:Libraries:
Essential Technologies
EssentialT@aol.com
AOL:MacDev:
MPW
68K
----------
Gamma Fade 1.2
Gamma Fade is a library of routines for dealing with gamma fading, a neat way of fading your monitor. Projects for THINK Pascal and Metrowerks C included.
__________
Apprentice:Source Code:Libraries:
Matt Slot
fprefect@engin.umich.edu
/info-mac/dev/src/
Metrowerks,Symantec
68K
----------
Graphic Elements 3
Graphic Elements is a very general, high-performance, framework-independent graphics presentation system. It offers graphic performance comparable to that of a "sprite animation" system. At the same time, it affords a very flexible mechanism for defining what a graphic is and does. Anything that can be drawn on the screen can be a Graphic Element. Graphic Elements is compatible with any Macintosh,having a 68020 (or better) processor running 32-bit QuickDraw. It is,not guaranteed to be compatible with system software versions prior to,System 7. Commercial use requires a licensing fee. Contact author for more details.
__________
Apprentice:Source Code:Libraries:
Al Evans
al@powertools.com
/info-mac/dev/lib/
Metrowerks,Symantec
68K
----------
GrayImage 2.1
GrayImage is a class library to do generic processing of grayscale images. It lets you do a variety of different operations on images, rectangular areas, etc.
__________
Apprentice:Source Code:Libraries:
Oleg Kiselyov
oleg@ponder.csci.unt.edu
ftp://replicant.csci.unt.edu/pub/oleg/
68K
----------
Internet Config 1.2
Internet Config is a library of routines which helps to organize the numerous configuration parameters you might need when dealing with the Internet and all of the tools. The goal is to simplify the user's experience, and the primary focus is the reduce the number of times a user is required to enter information like an email address. Several Internet applications now support Internet Config, such as Anarchie and Newswatcher. If you want to add support to your own application, you need this!
__________
Apprentice:Source Code:Libraries:
Quinn "The Eskimo"
quinn@quinn.echidna.id.au
ftp://ftp.share.com/peterlewis/
Metrowerks,Symantec
68K,PPC
----------
KPlib 1.3.5
KPlib is a C++ class library. The purpose of KPlib was to create an all-purpose class library that was compiler independent.
__________
Apprentice:Source Code:Libraries:
Keith Pomakis
pomakis@pobox.com
ftp://calum.uwaterloo.ca/pub/u/kppomaki/
Metrowerks
68K,PPC
----------
LColorPicker
LColorPicker demonstrates the use of Apple's color picker 2.0 in NON-MODAL dialogs!
__________
Apprentice:Source Code:Libraries:
Chris Thomas
ckt@best.com
/info-mac/dev/
Metrowerks
68K,PPC
----------
Libsprintf
Libsprintf gives you the functionality of the sprintf function without having to include the ANSI libraries in your project. As a standalone piece of code, it is easy and cheap to add this library to a project without incurring any additional overhead. And by adding the code directly to the project, you get the extra advantage of speed (The sample program shows timing differences between symantec's sprintf from the ANSI library and the libsprintf standalone code - a time savings of 30%). Two versions of each application are provided; one with the 'register' keyword specified in the code, and one that ignores the 'register' keyword. This can help determine if the automatic register assignment by the compiler is 'smart' or not.
__________
Apprentice:Source Code:Libraries:
Dave Nebinger
dnebing@epix.net
Symantec
68K,PPC
----------
MacINI 1.30
MacINI mimics the functionality of the Microsoft Windows API calls that pertain to the handling of private ".ini" files. It provides a simple, standard way for a developer to quickly implement a preferences file on the Macintosh using an ASCII text file, with the added advantage that these files can then be made platform independent.
__________
Apprentice:Source Code:Libraries:
Essential Technologies
EssentialT@aol.com
AOL:MacDev:
MPW
68K
----------
MacPNG Library
MacPNG Library is the Mac version of a library created by the Portable Network Graphics group. This group was formed in response to patent claims by the Unysis corporation concerning the GIF standard. It has become a design group for a significantly better format for images requiring lossless compression, namely, the Portable Network Graphics (PNG) format.
__________
Apprentice:Source Code:Libraries:
Mark Fleming
markf@knot.QueensU.CA
http://ccsmacinfo.ccs.queensu.ca/Mark/
Metrowerks
68K
----------
MacTCP Library 1.1
MacTCP library is a set of routines for handling MacTCP stuff. It doesn't try to implement sockets on top of MacTCP, and it doesn't contain a lot of fluff. What it does provide is a thin layer over the PBControl call. Simply put, the library replaces all of the calls to PBControl with descriptive functions. For example, instead of calling PBControl with a code to open an active TCP stream, you would use the TCPActiveOpen call. All of the control is still left in the hands of the programmer. Included are two demo applications which show how to use the MacTCP library. ShowMyAddress gets the Mac's IP address and tries to look up the canonical name from the name server. Host Probe uses TCP and UDP to 'probe' a host's facilities.
__________
Apprentice:Source Code:Libraries:
Dave Nebinger
dnebing@epix.net
Symantec
68K,PPC
----------
No68kHere
No68kHere puts up an alert with a Quit button. Used to post an alert if a PPC-only program is started on a 68K machine. (NO machine testing: does the same thing if run in emulation on a PowerMac (a file with no cfrg resource)). Should add < 200 bytes total size to your program, compared to at least 2K for the smallest possible C version. Should work on any Mac, 128K on up. Simply copy the resource fork to your application (most development systems do this automatically). You can also do it manually with Resedit or use a Rez/Resorcerer final build script. This effectively creates a fat binary, whose 68K version exists only to notify the user that a PPC is required.
__________
Apprentice:Source Code:Libraries:
Paul Sexton
PaulS101@gate.ioa.com
AOL:MacDev:
Metrowerks
68K,PPC
----------
PlayerPRO 4.5
PlayerPRO is a complete library which allows you to incorporate music into your applications. It does this by allowing you to use MOD files, which are special multi-channel sound files that are popular on the Amiga computer. Includes both 68K and PPC sample projects. You can use the PlayerPRO library free in your programs. PlayerPRO itself is $99 shareware.
__________
Apprentice:Source Code:Libraries:
Antoine Rosset
rosset@dial.eunet.ch
ftp://ftp.eskimo.com/u/w/wormey/PlayerPro/
Symantec,Metrowerks
68K,PPC
----------
PNL Libraries
PNL Libraries is the latest version of Peter Lewis' invaluable collection of routines that assist in writing Pascal source code. Included are routines that do everything from handling TCP/IP to managing file I/O.
__________
Apprentice:Source Code:Libraries:
Peter Lewis
peter@stairways.com.au
ftp://ftp.share.com/peterlewis/
Metrowerks,Symantec
68K,PPC
----------
PPP Interfaces 1.2
PPP Interfaces are two Metrowerks C/C++ libraries to allow you to connect and disconnect MacPPP and FreePPP programmatically, and find out whether it's currently connected.
__________
Apprentice:Source Code:Libraries:
Richard Buckle
richardb@cocytus.demon.co.uk
Metrowerks
68K
----------
ravlf 2.1
ravlf (Random-access variable-length files) implements direct access to variable-length records in a file's data fork. The functionality is similar to, but simpler than, the Mac's Resource Manager. The size of the file and the number of records are unlimited.
__________
Apprentice:Source Code:Libraries:
Tad Woods
70312.3552@compuserve.com
ftp://ftp.infi.net/pub/customer/roanoke/tandtsw/
Symantec,Metrowerks,MPW
68K,PPC
----------
Round Window 1.0
Round Window is a WDEF (window definition) that allows you to create round windows. You can use it freely in any of your programs.
__________
Apprentice:Source Code:Libraries:
Mattias Ellert
t91mel@student.tdb.uu.se
68K
----------
SAT 2.3.7
SAT is short for Sprite Animation Toolkit, a programming library for the Apple Macintosh and Apple PowerMac, intended for sprite-based animation. It has been used successfully in over a dozen *released* games. SAT can be used from Think Pascal, Think C, Metrowerks Pascal or Metrowerks C. Using it from C++ is possible, though there are no classes included. OO programmers can try the C++ and TCL Pascal files. They are written by Nathaniel Woods and Patrick Hew, respectively. Nat's package is thoroughly OO, using the "PP" calls in SAT to make sprites and faces work as objects, while Patrick's package is rather meant as a OO platform on top of which the SAT-related routines work as usual.
__________
Apprentice:Source Code:Libraries:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Metrowerks,Symantec
68K,PPC
----------
Scripting
Scripting is a regular expressing scripting system. It was inspired by an article in Dr. Dobb's SourceBook and requires PowerPlant and CodeWarrior.
__________
Apprentice:Source Code:Libraries:
Steve Israelson
steve_israelson@mindlink.net
Metrowerks
68K,PPC
----------
Simple Sockets 1.1
Simple Sockets is a small, relatively simple C code library for approximating BSD UNIX socket calls with MacTCP. Simple Sockets doesn't provide 100% faithful BSD port, rather it is a quick and easy way to "get the job done".
__________
Apprentice:Source Code:Libraries:
Michael Trent
mtrent@msn.fullfeed.com
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Spinning Cursor 1.1
Spinning Cursor is a set of routines for handling a spinning cursor in your application. If you have a place in your app where users have to wait an inordinate period of time, and you want to let them know that the program has not hung, try using a spinning cursor. Includes THINK C (68K and PPC) projects.
__________
Apprentice:Source Code:Libraries:
Dave Nebinger
dnebing@epix.net
Symantec
68K,PPC
----------
Syslog Component
Syslog Component is an example of a fat component built using Symantec C/C++ 8.0.x and Think C 7.0.x. The component and the interface glue provide an implementation of the Un*x syslog routines. The man page for the syslog routines is included to see how to use them. There are two extra routines provided that are not part of the normal syslog implementation. syslogerr() returns the last error encountered in the component. setsyslogfile() changes the default file written into by the syslog routines (the default file is named syslog and is stored in the system folder). Also a utility routine HaveComponentMgr() will determine if the component manager is available.
__________
Apprentice:Source Code:Libraries:
Dave Nebinger
dnebing@epix.net
Symantec
68K,PPC
----------
ThreadLibrary 1.3
Thread Library is a free library, for use by Macintosh software developers, that implements cooperative multiple thread execution within a single application. Thread Library does not require any extensions; should work with all Macintosh models (from the Plus on up); works with system 7.x and with system 6.x under Finder or MultiFinder; runs in native mode on 680x0 and PowerPC* based Macintoshes; compiles into a small library of 3 to 8 kilobytes; works with the Symantec, Metrowerks, and MPW compilers. The 680x0 version of Thread Library is 2-3 times faster than Apple's Thread Manager. The PowerPC version of Thread Library is about 2 times faster than Apple's Thread Manager.
__________
Apprentice:Source Code:Libraries:
Ari Halberstadt
ari@shore.net
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Tools Plus 2.6.1a
Tools Plus is a set of powerful, yet easy-to-learn productivity libraries for Mac programmers using THINK C and THINK Pascal. It includes over 170 high-powered "set and forget" routines.
__________
Apprentice:Source Code:Libraries:
Water's Edge Software
WatersEdge@eworld.com
/info-mac/dev/
Metrowerks,Symantec
68K,PPC
----------
VideoToolbox 95.11.08
VideoToolbox is a collection of two hundred C subroutines and several demo and utility programs that were written to do visual psychophysics with Macintosh computers.
__________
Apprentice:Source Code:Libraries:
Denis Pelli
denis@xp.psych.nyu.edu
/info-mac/dev/src/
Metrowerks,Symantec
68K,PPC
----------
WASTE 1.2a4
WASTE is a text editing library for Macintosh programmers. Designed to be a viable replacement for TextEdit, WASTE offers several enhancements, the major one being the ability to handle text files larger than 32K. Like TextEdit, WASTE handles multi-styled text and relies on the services offered by the Script Manager for drawing, measuring and hit-testing the text and for finding word and line breaks. The built-in support for inline input makes WASTE fully WorldScript II-compliant (on the other hand, bidirectional scripts, like Arabic, are not supported). Projects for CodeWarrior C 7 (68K and PPC) and Symantec C++ 8 (PPC) are included.
__________
Apprentice:Source Code:Libraries:
Marco Piovanelli
piovanel@kagi.com
ftp://ftp.dsi.unimi.it/DSI/piovanel/waste/
Metrowerks,Symantec
68K,PPC
----------
Witch Doctor 1.5.1
Witch Doctor prevents you from running applications that could possibly cause problems, due to requirements that your current system cannot handle. For example, your application may need Color QuickDraw, the Thread Manager or the Drag Manager. Also, depending on your needs you might want to warn your user or even force them to quit if the required items aren't available. From application to application, you can write app-specific code to test for these conditions, but ISN'T THAT A DRAG?!? That's where the Witch Doctor comes in. You tell it which items to check for, plus whether these items - if not on the target system - should result in just warning the user or forcing them to quit.
__________
Apprentice:Source Code:Libraries:
Hiep Dam
starlabs@aol.com
Metrowerks
68K
----------
Z80 emulator
Z80 emulator is a C coded emulator of the Zilog Z80 CPU. It is designed for high speed and easy to use. Actually it was written to drive Mac Spectacle, the Sinclair ZX Spectrum emulator from the same author.
Calendar is an OpenDoc part which will display the text on that day of some text that has been dragged onto it. This demo part will only show the current month and does not allow typing.
__________
Apprentice:Source Code:OpenDoc:
Michael Rutman
moose@manicmoose.com
Metrowerks,MPW
68K,PPC
----------
CreditNow!
CreditNow! is a credit-card authorization server. The authorization server is driven via a single AppleEvent. When the background server receives an event, it first performs a calculation on the credit card number to ensure it is a "potentially" valid card. If the card does not pass this procedure, a Bad Card Number error is returned to the user. The authorization server then contacts the authorization provider. In this demonstration, the sequence is simulated on the screen (Dialing, Connecting, Uploading Transaction, Waiting, Downloading Result, Idle). No actual phone call is made, nor does a modem need to be connected to the machine.
__________
Apprentice:Source Code:OpenDoc:
Ray Côté
apsol@apsol.com
Metrowerks,MPW
68K
----------
Headline
Headline is an OpenDoc part which shows a text display bounded by the part frame. It features a Font menu and allows you to change the text with the Cut, Copy, Paste, and Clear menu commands. It receives 'TEXT' drags and links to changes the text string.
__________
Apprentice:Source Code:OpenDoc:
Jim Matthews
james.w.matthews@dartmouth.edu
http://www.dartmouth.edu/pages/softdev/
Metrowerks,MPW
68K
----------
PictPart
PictPart is an OpenDoc part. ORKIS is the editor of ImageBase-Pro, an image database software for Macintosh. The company currently investigates the OpenDoc technology to be able to access its database from a set of interactive parts. PictPart is a test to evaluate how to take advantage of the data linking process.
__________
Apprentice:Source Code:OpenDoc:
Pierre François Besson
ORKIS@AppleLink.Apple.COM
Metrowerks,MPW
68K
----------
ProcessMap
ProcessMap is an OpenDoc part which shows what and where a process is. Clicking the rect displays the name and the address. The menu has the list of processes and switches if you choose.
__________
Apprentice:Source Code:OpenDoc:
Hideshi Nakase
nakase44@jp.interramp.com
Metrowerks,MPW
68K,PPC
----------
Video
Video is an OpenDoc part which puts up a simple video display. It demonstrates, among other things, idle-time updating.
__________
Apprentice:Source Code:OpenDoc:
Jovia Systems
JOVIAN@AppleLink.Apple.COM
Metrowerks,MPW
68K
----------
Flight Stability
Flight Stability demonstrates how dynamical systems can affect the directional stability of aircraft. It was not designed to be a complete flight simulator, and hence does not present a realistic model of all the elements to do with flying. In particular, the user is only able to bank and pitch the aircraft; there being no rudder control for yaw. The control that is provided is quite unrealistic, and in some ways wrong.
__________
Apprentice:Source Code:Pascal:Applications:
Patrick Hew
phew@tartarus.uwa.edu.au
/info-mac/dev/src/
Symantec
68K
----------
MakeFat 1.0
MakeFat creates fat applications. It has no user interface, just drag two apps on to it, it processes them and quits. If you launch it without any apps, it will complain.
__________
Apprentice:Source Code:Pascal:Applications:
Peter Lewis
peter@stairways.com.au
ftp://ftp.share.com/peterlewis/
Metrowerks
68K
----------
NIH Image 1.59
NIH Image is a public domain image processing and analysis program for the Macintosh. It can acquire, display, edit, enhance, analyze, print and animate images. It reads and writes TIFF, PICT, PICS and MacPaint files, providing compatibility with many other applications, including programs for scanning, processing, editing, publishing and analyzing images. It supports many standard image processing functions, including contrast enhancement, density profiling, smoothing, sharpening, edge detection, median filtering, and spatial convolution with user defined kernels up to 63x63. It also incorporates a Pascal-like macro programming language, providing the ability to automate complex, and frequently repetitive, processing tasks. Complete source code is included in a Think Pascal project.
__________
Apprentice:Source Code:Pascal:Applications:
Wayne Rasband
wayne@helix.nih.gov
ftp://zippy.nimh.nih.gov/pub/nih-image/
Metrowerks
68K,PPC
----------
PRAM-Reader 1.2
PRAM-Reader reads and writes the original parameter RAM ("PRAM") data and the extended parameter RAM data of the Macintosh to a file on the disk. You can make a backup of the content of your PRAM with PRAM-Reader and rewrite this backup back to your PRAM in case the content of the PRAM is lost or you would like to restore old settings in control panels.
__________
Apprentice:Source Code:Pascal:Applications:
Matthias Wuttke
wuttke@stein.teuto.de
Symantec
68K,PPC
----------
SplatMaster 2.0d
SplatMaster is a drawing utility that lets you draw multiple polygons in a window. Use the various controls to set the size and shape of the polygons and copy your final output to the clipboard. 68K THINK Pascal project included.
__________
Apprentice:Source Code:Pascal:Applications:
Ken Long
kenlong@netcom.com
Metrowerks,Symantec
68K
----------
PICT CDEF 1.0.1
PICT CDEF is a simple control definition that allows you to display background pictures on your dialogs. If you simply place PICTs in your dialogs, they draw over your controls. This CDEF fixes the problem.
__________
Apprentice:Source Code:Pascal:Code Resources:
Ramakota Reddy
ramu@u.washington.edu
Symantec
68K
----------
SWar-p
SWar-p is the source code for an unfinished arcade game. Right now, the program lets one player fly the blue ship, with three other ships just placed in random trajectories. The object is simply to shoot the other players. Use the left/right arrow keys to rotate the blue ship, and use the up arrow to thrust, and use the control key to fire missiles. Original concept by Ron Kaps. Ported to Pascal by Ingemar Ragnemalm.
__________
Apprentice:Source Code:Pascal:Games:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Symantec,Metrowerks
68K,PPC
----------
3DBouncer
3DBouncer was originally intended for use as a After Dark ScreenSaver Module. Ken Long started the conversion to a stand-alone application, and Ingemar Ragnemalm finished that conversion, plus added sound (with stereo panning).
__________
Apprentice:Source Code:Pascal:Snippets:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Symantec,Metrowerks
68K,PPC
----------
AntiAlias II
AntiAlias shows how to make anti-aliased text. Based on a demo by David Phillip Oster <oster@netcom.com> This version uses an offscreen with selectable depth. Modify the kOffDepth constant to try it.
__________
Apprentice:Source Code:Pascal:Snippets:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Symantec,Metrowerks
68K,PPC
----------
Approximate Pi
Approximate Pi is Pascal source code for a program which calculates the value of Pi. This program uses 80-bit number crunching to approximate values for pi. It also uses number tables to format the 80-bit number for output. This program was originally posted in C (author unknown), and has since been translated into Pascal. Error handling for formatting the number has been added to display error messages instead of a number if there are problems during formatting.
__________
Apprentice:Source Code:Pascal:Snippets:
Bill Catambay
Catambay@aol.com
/info-mac/dev/src/
Metrowerks
68K
----------
Async Sample
Async Sample demonstrates the use of asynchronous sounds in your application. There is a brief description of this sample program in the header of the source code. Note, however, that while it talks about using lots of memory, the actual project does not use all that memory. The original project was 2.1 meg, and this one comes in at 200K (big difference, eh?). The best thing to do is, once you've got it working, use ResEdit to cut and paste in bigger and better sounds. For sound resources 151 thru 154, I recommend grabbing four parts of a piece of music. The program should play them relatively well one after the other in continuous play. Includes 68k and PPC projects.
__________
Apprentice:Source Code:Pascal:Snippets:
Bill Catambay
Catambay@aol.com
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Calling ShowIcon7
Calling ShowIcon7 shows how to call ShowIcon7 from a Pascal INIT, along with a brief explanation of how to call code resources.
__________
Apprentice:Source Code:Pascal:Snippets:
Tony Andreoli
andreoli@owens.ridgecrest.ca.us
Symantec
68K
----------
CopyBits Demo
CopyBits Demo is an example project that gives several examples of using CopyBits to copy pictures both on screen and between offscreen Graphics Worlds and an onscreen window (as well as between GWorlds). It does all the following things using CopyBits: Fade an area of the screen to black (using three different methods); demonstrates "flickering" regular animation vs. smooth animation; fades one image into another; "pixelizes" and "depixelizes" an image (an animation effect where the picture ends up in a very blocky representation of the original); blurs an image; flips an image horizontally or vertically; applies fading effects to the entire screen rather than just part of a window. All the code and the project file to build the demo app is included (Metrowerks CodeWarrior Pascal). The code is well documented.
__________
Apprentice:Source Code:Pascal:Snippets:
Bill Catambay
Catambay@aol.com
/info-mac/dev/src/
Metrowerks
68K
----------
DevilAbout
DevilAbout is the splash screen for Devil in a Blue Dress, a group project for Marathon created by many volunteers throughout the Marathon community. The source code demonstrates scrolling movie credits against hi-res background pictures.
__________
Apprentice:Source Code:Pascal:Snippets:
Bill Catambay
Catambay@aol.com
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
Fixed Point Conversions
The Unit "FixedPointConversions.p" contains routines to convert Fixed-point numbers to double-precision floating-point numbers, and single-precision floating-point numbers to fixed-point numbers. One routine illustrates the breakdown of a floating-point number.
__________
Apprentice:Source Code:Pascal:Snippets:
Dan Rickey
physics@escape.ca
exclusive
Metrowerks,Symantec
68K
----------
GammaFade
GammaFade is a library of routines for dealing with gamma fading, a neat way of fading your monitor. CodeWarrior Pascal projects for 68k and PPC included.
__________
Apprentice:Source Code:Pascal:Snippets:
Bill Catambay
Catambay@aol.com
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
HideMenuBar
HideMenuBar is an example of how you might hide the menu bar in your application. CodeWarrior and THINK Pascal projects included.
__________
Apprentice:Source Code:Pascal:Snippets:
Bill Catambay
Catambay@aol.com
/info-mac/dev/src/
Metrowerks,Symantec
68K
----------
Marque
Marque implements a "rubber band" marquee select rect with very smooth drawing in a manner similar to the Mac Finder. CodeWarrior Pascal project included.
__________
Apprentice:Source Code:Pascal:Snippets:
Bill Catambay
Catambay@aol.com
/info-mac/dev/src/
Metrowerks
68K
----------
MicroAnimationDemo
MicroAnimationDemo is an example of doing basic animation and is from the same author as SAT and OffscreenToys. This demo is an incredibly stripped version of what you can do and is a good starting point for beginners. If you want to go further, check out SAT.
__________
Apprentice:Source Code:Pascal:Snippets:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Symantec,Metrowerks
68K,PPC
----------
MovieScroll
MovieScroll demonstrates how you might go about putting those scrolling movie type credits into your application. Originally by Ken Long with updates by Ingemar Ragnemalm.
__________
Apprentice:Source Code:Pascal:Snippets:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Symantec,Metrowerks
68K,PPC
----------
OffscreenToys 1.4
OffscreenToys 1.4 is an attempt to make a simple, small, stand-alone, compatible offscreen animation demo. Use it to learn to internals of animation. As with all good source code examples, this one is small, making it fairly easy to browse the code.
__________
Apprentice:Source Code:Pascal:Snippets:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Symantec,Metrowerks
68K,PPC
----------
PopUpTest
PopUpTest demonstrates the use of the dialog manager. The dialog it displays includes editable fields, pop-ups, pop-ups with submenus, pop-ups with editable text, pop-ups which display at a mouseDown location, disabling buttons, etc., etc...
__________
Apprentice:Source Code:Pascal:Snippets:
Bill Catambay
Catambay@aol.com
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
PWarp
PWarp is a simple application based on Warp by Tony Mattis. Stars now have different colors and different sizes, and the program works even without Color QuickDraw.
__________
Apprentice:Source Code:Pascal:Snippets:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Symantec,Metrowerks
68K,PPC
----------
Serial
Serial is a collection of useful serial routines in Pascal.
__________
Apprentice:Source Code:Pascal:Snippets:
Nathan Hendler
equant@AZStarNet.com
Symantec
68K
----------
sndDemo
sndDemo is a small program which demonstrates how to play an asynchronous sound to work. Some essential ideas were gleaned from Jim Reekes' pSoundApp example in the DTS folder.
__________
Apprentice:Source Code:Pascal:Snippets:
Ingemar Ragnemalm
ingemar@lysator.liu.se
ftp://ftp.lysator.liu.se/pub/mac/
Symantec,Metrowerks
68K,PPC
----------
StringManipulators
StringManipulators is a collection of Pascal routines which were written to complement GetIndString. They allow the user to add, delete or change individual strings in a string list resource (STR#). A fourth routine returns the number of strings in the list.
__________
Apprentice:Source Code:Pascal:Snippets:
David B. Zwiefelhofer
subversive@aol.com
/info-mac/dev/src/
Symantec
68K,PPC
----------
3D Additions 1.7
3D Additions is a set of classes which provides a simple 3D interface as described in Develop issue 15. Subclasses of LAttachment, LPane, and LEditField are available plus stand-alone drawing routines. Lines, rectangles and ovals are supported, and all elements can be drawn either raised or inset and use either a global color scheme or individualized (per routine) colors. The differences between these classes and those in Develop are: these use PowerPlant rather than MacApp; and, these are much simpler.
__________
Apprentice:Source Code:PowerPlant:
James Rodden
rodden@cse.ucsc.edu
http://www.cse.ucsc.edu/~rodden/libraries.html
Metrowerks
68K,PPC
----------
C3DMFViewer
C3DMFViewer implements a Quickdraw 3D Viewer as a PowerPlant pane,,and was written for Metrowerks Codewarrior release 7. It should open and display any 3DMF file, and it gives you control over the standard Viewer flags. All of the real work is in the class C3DMFViewerPane. Everything else just hooks it into PowerPlant.
__________
Apprentice:Source Code:PowerPlant:
James Jennings
jennings@halcyon.com
Metrowerks
68K
----------
CContextHandler
CContextHandler is a class which encapsulates AppleGuide context checking for PowerPlant applications. It uses a single ContextReplyProc to dispatch context checks to specific context checking objects. Two useful subclasses are provided for checking the enabled state of commands and the front window's pane id. These context checks are more powerful than the kinds of context checking that can be done from external modules because they don't depend on menu item text or position or on window title or size.
__________
Apprentice:Source Code:PowerPlant:
Harold Ekstrom
ekstrom@aggroup.com
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
CDimmerCluster
CDimmerCluster dims any of its sub-panes when a master LControl-subclass is enabled or disabled. This is usually a checkbox, but you can use any LControl subclass; the requirement is that the control must send a message "cmd_DimGroup" (3000) whose ioParam is 0 or 1 depending on whether dimming is required or not. This is most easily done with Constructor. The pane ID of the controlling sub-pane is put into the "user contant" field of the CDimmerCluster. The general idea is that you drop the code into your project, then do most of the work in Constructor.
__________
Apprentice:Source Code:PowerPlant:
Sak Wathanasin
sw@nan.co.uk
Metrowerks
68K,PPC
----------
CDragAndDrop
CDragAndDrop picks up drag manager handling where LDragAndDrop leaves off. Everything necessary for a drag and droppable pane is encapsulated in this class.
__________
Apprentice:Source Code:PowerPlant:
James Rodden
rodden@cse.ucsc.edu
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
CGI++ Framework
CGI++ Framework is a Metrowerks PowerPlant Application Class that provides all interfacing to MacHTTP and WebSTAR WWW servers. It provides a service similar to Grant's CGI Framework, but provides a C++ and PowerPlant Compatible base.
__________
Apprentice:Source Code:PowerPlant:
Brian Todoroff
btodorof@hmc.edu
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
CPasswordField
CPassworldField is a subclass of LEditField that is used for entering passwords in a way that they can't be seen on screen. It shows bullets for each keystroke. It doesn't do any sophisticated editing, if you press the delete key, the whole field is cleared. Cut and copy is blocked. The programmer gets and sets the field with Get/SetDescriptor() in the normal way. Tabs and Returns are passed on.
__________
Apprentice:Source Code:PowerPlant:
Peter Marks
PETER_MARKS@qmgate.corp.apple.com
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
CSpinner
CSpinner is a C++ class which lets you spin the mouse cursor using a VBL task. It compiles for 68K and PowerPC, yet it uses no dirty tricks. t is 100% reusable - drop it into your new project and it works. It reports errors using exceptions (conforming to PowerPlant's conventions). Requirements: this class uses the files UDebugging.h and UException.h from PowerPlant.
__________
Apprentice:Source Code:PowerPlant:
François Pottier
pottier@dmi.ens.fr
Metrowerks
68K,PPC
----------
Hierarchical Lists
Hierarchical Lists is a set of classes which implement a Finder-like hierarchical lists for the MetroWerks' PowerPlant framework. The use and workings of these classes is fully explained in the author's article in Apple's DEVELOP magazine issue 21.
__________
Apprentice:Source Code:PowerPlant:
Jan Bruyndonckx
jbruyndonckx@waveresearch.com
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
LAboutBox
LAboutBox is a wrapper class to make life easier when implementing an about box. To use it, write a PPob resource with Constructor (or whatever you want!); then, write a RidL resource (even an empty one!) with the same ID as your PPob; Finally, call LAboutBox::DoAboutBox(), a static method.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
LButtonKeyAtt
LButtonKeyAtt allows you to activate a button in a dialog (or a window) from the keyboard. The UI is the same as in Nisus (or WordPerfect 3); while you hold down the command key, a hint appears next to the button. For example, if the button is "Don't Save", you'll get a little cmd-D beside it; hitting cmd-d activates the button.
__________
Apprentice:Source Code:PowerPlant:
Roger Pantos
rpantos@apple.com
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
LConsoleAttachment
LConsoleAttachment is an attachment which pumps events through SIOUX, the front end for creating quick Unix ports in CodeWarrior.
__________
Apprentice:Source Code:PowerPlant:
Ken Badertscher
KenBad@aol.com
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
LDelayedTask
LDelayedTask is an abstract class to execute a task after a certain period of time. This class is not really precise: it use TickCount() as a time measure. On another side, you can do about all you want in the ExecuteSelf() method. One example of its use, is to implement a "Find" in a list or table, a la Metrowerks IDE. Each time the user press a key, you call RestartTask(). When the user will not have pressed a key for a determined period, you do the search in the ExecuteSelf() method.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
LDimmableView
LDimmableView is a class which exists for one purpose only: to gray out a view that has been disabled. This includes graying out all of the subviews within that view. To accomplish this, LDimmableView orders all of the subviews and attachments to draw themselves, checks to see if the view is in a disabled state and grays out the view if it is. The code also does the right thing if running under color.
__________
Apprentice:Source Code:PowerPlant:
Rick Eames
athos@natural.com
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
LDynamicPopupMenu
LDynamicPopupMenu is a class which creates a dynamic pop-up menu from a stream in a PPob resource, it disregards the menu id you specify in the PPob popupmenu field and instead it creates a menu with ID starting at 20000 and increments upwards from there. (NOTE: You must make sure that the number you pick is far from the numbers of any other possible menus.)
__________
Apprentice:Source Code:PowerPlant:
Constantine Spathis
ir001351@pop3.interramp.com
ftp://ftp.metrowerks.com/pub/powerplant/
68K
----------
LFolderWatcher
LFolderWatcher, as its name tells, watches a folder for any modification in it. LFolderWatcher is a subclass of LSortedList.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
LFSSpecComparator
LFSSpecComparator is simple class to compare two FSSpec record in a LSortedList.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
LNotificationTask
LNotificationTask is a wrapper class for the Notification Manager. Create a LNotificationTask object with the right arguments. That's all!
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
LPasswordField
LPasswordField is a Pane containing editable text, but which only displays bullet characters. Use an LPasswordField for small amounts of monstyled text, such as a text entry field in a dialog box. PasswordField derives from the LEditField class, so similar restrictions apply to its usage (it uses TextEdit, and it's not a View, so you can't put an LPasswordField in a Scroller).
__________
Apprentice:Source Code:PowerPlant:
Dair Grant
dair@kagi.com
/info-mac/dev/src/
Metrowerks
68K,PPC
----------
LPPobView
LPPobView is a class that will load a PPob resource and put the superview of this hierarchy as a subview of the LPPobView's superview. It is useful when you want to have a few view that are superposed as in preferences panels.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
LResumer and LSuspender
LResumer is an abstract class that will call all derived class ResumeSelf() when your application receive a "resume" event and LSuspender is an abstract class that will call all derived class SuspendSelf() when your application receive a "suspend" event.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
LTimerTask
LTimerTask is a wrapper class for the Time Manager. It hides all the details for you. To use, derive LTimerTask and override StartTaskSelf(); ExecuteTaskSelf(); and StopTaskSelf();
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
LVerticalRetraceTask
LVerticalRetraceTask is a wrapper class for the Vertical Retrace Manager. It hides all the details for you. To use, derive LVerticalRetraceTask and override: StartTaskSelf(); ExecuteTaskSelf(); StopTaskSelf();
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
Memory Allocator
Memory Allocator provides a fast allocator which recycles freed objects into a set of pools for later reuse. Typical speed improvments range from 5x to 10x (your mileage may vary). Provided you understand when to use this allocator, and what its drawbacks are, it can be very usefull if you spend your time allocating and freeing a lot of small objects
__________
Apprentice:Source Code:PowerPlant:
Jean-Francois Brouillet
verec@micronet.fr
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
Slider
Slider is a set of classes for PowerPlant. HorzSlider and VertSlider provide a movable slider similar to setting the volume control on the Mac. Rather than dealing with CDEFs these classes can be compiled and used directly in your program and easily subclassed or modified for new behavior. This makes tracking action very easy.
__________
Apprentice:Source Code:PowerPlant:
Scott Squires
squires@crl.com
ftp://ftp.metrowerks.com/pub/powerplant/
Metrowerks
68K,PPC
----------
USoundPlayer
USoundPlayer is a wrapper class to make life easier when playing a sound handle. You can play a sound by name, resource ID or SndListHandle. To use, call one of the USoundPlayer::PlaySound() method. That's all!
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
USubFolderFinder
USubfolderFinder return the dirID and vRefNum for a named subfolder in the same folder than the application. This class could be useful if used in combination with LFolderWatcher (a separate package).
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
UVirusCheck
UVirusCheck implement a checksum (really basic one!) to the resource fork of an application. The first time you start your application it will make the checksum and write it directly in the resource fork. Each time later it will only read: so it is clean when sending it to customers.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
UVisualEffect
UVisualEffect help you doing the "visual effect" like in the Finder when you open or close a file/folder.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
UWindowUsher 1.1
UWindowUsher is a module which tries to place your windows in their correct location. It also manages your Window menu. In version 1.1, UWindowUsher now deal correctly with standard size.
__________
Apprentice:Source Code:PowerPlant:
Éric Forget
forgete@vir.ca
/info-mac/dev/src/
Metrowerks
68K
----------
AutoPay Developer's Kit
AutoPay is a software module that you can insert in your own programs. It allows users to pay for your software with a credit card. They can pay instantaneously through a modem, through a voice telephone call, through the mail, or through a fax. You don't need a credit card merchant account. AutoPay is great for both shareware authors and for software publishers who want to distribute their products through on-line channels.
__________
Apprentice:Source Code:SDKs:
Digital Money, Inc.
matthewk@digimoney.com
/info-mac/dev/lib/
Symantec,Metrowerks
68K
----------
Word Services SDK 1.0.6
Word Services SDK helps you to write applications which can use the Word Services suite of Apple events. The suite should be supported by applications that let the user edit text, such as word processors, drawing programs, spreadsheets, or electronic mail packages. Included is the complete source code for a simple word processor called Writeswell Jr., as well as a debugging version of a speller and a dictionary.
WASTE TCL is a set of classes written to use Marco Piovanelli's text edit replacement WASTE with the Think Class Libraries. It only works with versions 2.0.3 or later of TCL. WASTE supports styled text and does not suffer from the 32K limit of text edit.